Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
switching from instance_count to scale
  • Loading branch information
hhuuggoo authored Mar 28, 2024
1 parent 528e6e1 commit 9e87727
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions saturn_client/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def print_resources(resource: Union[List, Dict], output: str = OutputFormat.TABL
def print_resource_table(
resources: List[Dict[str, Any]],
):
headers = ["owner", "name", "resource_type", "status", "instance_type", "instance_count", "id"]
headers = ["owner", "name", "resource_type", "status", "instance_type", "scale", "id"]
data: List[List[str]] = []
for resource in resources:
spec = resource["spec"]
Expand All @@ -61,8 +61,8 @@ def print_resource_table(
resource_type = resource["type"]
status = state.get("status")
instance_type = spec["instance_type"]
instance_count = spec.get("instance_count", 1)
data.append([owner, name, resource_type, status, instance_type, instance_count, id])
scale = spec.get("scale", 1)
data.append([owner, name, resource_type, status, instance_type, scale, id])
tabulate(data, headers)


Expand Down

0 comments on commit 9e87727

Please sign in to comment.