Skip to content

Commit

Permalink
Fix RESERVATIONS display in fleets table (#2082)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor authored Dec 11, 2024
1 parent 42b765f commit a9be778
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/dstack/_internal/cli/utils/fleet.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,17 @@ def get_fleets_table(

row = [
fleet.name if i == 0 else "",
]
if verbose:
row.append(fleet.spec.configuration.reservation or "" if i == 0 else "")
row += [
str(instance.instance_num),
backend,
resources,
f"${instance.price:.4}" if instance.price is not None else "",
status,
format_date(instance.created),
]

if verbose and i == 0:
row.insert(
1,
fleet.spec.configuration.reservation if i == 0 else "",
)

if verbose:
error = ""
if instance.status == InstanceStatus.TERMINATED and instance.termination_reason:
Expand Down

0 comments on commit a9be778

Please sign in to comment.