From 9d7c42f2203148c6b0c8e32969ca7c16f57fb95e Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Wed, 5 Jun 2024 13:10:41 +0500 Subject: [PATCH] Fix dstack pool ps showing only unreachable --- src/dstack/_internal/cli/commands/pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dstack/_internal/cli/commands/pool.py b/src/dstack/_internal/cli/commands/pool.py index 3577750f3..f6be01a2e 100644 --- a/src/dstack/_internal/cli/commands/pool.py +++ b/src/dstack/_internal/cli/commands/pool.py @@ -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,