Skip to content

Commit 92e0993

Browse files
authored
Fix the "No Fleets" warning in CLI (#3667)
Do not warn if there are imported fleets.
1 parent a284fff commit 92e0993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/dstack/_internal/cli/services/configurators

src/dstack/_internal/cli/services/configurators/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def apply_configuration(
112112

113113
no_fleets = False
114114
if len(run_plan.job_plans[0].offers) == 0:
115-
if len(self.api.client.fleets.list(self.api.project)) == 0:
115+
if len(self.api.client.fleets.list(self.api.project, include_imported=True)) == 0:
116116
no_fleets = True
117117

118118
print_run_plan(

0 commit comments

Comments
 (0)