Skip to content

Commit 30ff069

Browse files
[Bug]: CLI offers grouped by GPU output as JSON fails #3120 (#3122)
1 parent db43f6a commit 30ff069

File tree

1 file changed

+2
-2
lines changed
  • src/dstack/_internal/cli/utils

1 file changed

+2
-2
lines changed

src/dstack/_internal/cli/utils/gpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from dstack._internal.server.schemas.gpus import GpuGroup
1010

1111

12-
def print_gpu_json(gpu_response, run_spec, group_by_cli, api_project):
12+
def print_gpu_json(gpus, run_spec, group_by_cli, api_project):
1313
"""Print GPU information in JSON format."""
1414
req = Requirements(
1515
resources=run_spec.configuration.resources,
@@ -36,7 +36,7 @@ def print_gpu_json(gpu_response, run_spec, group_by_cli, api_project):
3636
"gpus": [],
3737
}
3838

39-
for gpu_group in gpu_response.gpus:
39+
for gpu_group in gpus:
4040
gpu_data = {
4141
"name": gpu_group.name,
4242
"memory_mib": gpu_group.memory_mib,

0 commit comments

Comments
 (0)