Skip to content

Commit 0e49ef2

Browse files
authored
Fix: return when there are no matched clusters (skypilot-org#500)
1 parent 24f99c0 commit 0e49ef2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: sky/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ def _terminate_or_stop_clusters(names: Tuple[str], apply_to_all: Optional[bool],
11761176
names = []
11771177
if not to_down and not names:
11781178
print('No existing clusters found (see `sky status`).')
1179+
return
11791180

11801181
if not no_confirm:
11811182
teardown_verb = 'Terminating' if terminate else 'Stopping'

0 commit comments

Comments
 (0)