Skip to content

Commit

Permalink
show-ecs script
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Aug 28, 2024
1 parent 9391efb commit ee133b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/show_ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [])
Expand Down Expand Up @@ -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)):
Expand Down

0 comments on commit ee133b9

Please sign in to comment.