Skip to content

Commit

Permalink
Fix dstack pool ps showing only unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed Jun 5, 2024
1 parent 5109ad4 commit 9d7c42f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dstack/_internal/cli/commands/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ def get_instance_table(instances: Sequence[Instance]) -> Table:
spot = "yes" if instance.instance_type.resources.spot else "no"

status = instance.status.value
if instance.unreachable:
status = "unreachable"
if instance.status in [InstanceStatus.IDLE, InstanceStatus.BUSY] and instance.unreachable:
status += "\n(unreachable)"

row = [
instance.name,
Expand Down

0 comments on commit 9d7c42f

Please sign in to comment.