From ee133b911930e3380089b924b0ac2d41b571738d Mon Sep 17 00:00:00 2001 From: David Michaels Date: Wed, 28 Aug 2024 07:38:48 -0400 Subject: [PATCH] show-ecs script --- src/commands/show_ecs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)):