diff --git a/src/commands/show_ecs.py b/src/commands/show_ecs.py index 9133e0e2..e7851406 100644 --- a/src/commands/show_ecs.py +++ b/src/commands/show_ecs.py @@ -283,10 +283,6 @@ def print(self, shortened_names: bool = False, versioned_names: bool = False) -> f"{f' | ({service_running_task_count})' if service_running_task_count > 0 else ''}") print("") - def _note_name(self, value: str) -> None: - if isinstance(value, str) and value and (value.lower() != "default"): - self._names.append(value) - def _list_clusters(self) -> List[str]: try: return self._boto_ecs.list_clusters().get("clusterArns", []) @@ -365,6 +361,10 @@ def _unversioned_name(value: str) -> str: return value[:colon] return value + def _note_name(self, value: str) -> None: + if isinstance(value, str) and value and (value.lower() != "default"): + self._names.append(value) + @staticmethod def _longest_common_prefix(strings: List[str]) -> str: if not (isinstance(strings, list) and strings and isinstance(prefix := strings[0], str)):