Skip to content

Commit b9cc1ef

Browse files
authored
Exclude current_resource.fleet (#3087)
1 parent ecc591d commit b9cc1ef

File tree

1 file changed

+2
-0
lines changed
  • src/dstack/_internal/core/compatibility

1 file changed

+2
-0
lines changed

src/dstack/_internal/core/compatibility/runs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def get_apply_plan_excludes(plan: ApplyRunPlanInput) -> Optional[IncludeExcludeD
3131
current_resource_excludes["status_message"] = True
3232
if current_resource.deployment_num == 0:
3333
current_resource_excludes["deployment_num"] = True
34+
if current_resource.fleet is None:
35+
current_resource_excludes["fleet"] = True
3436
apply_plan_excludes["current_resource"] = current_resource_excludes
3537
current_resource_excludes["run_spec"] = get_run_spec_excludes(current_resource.run_spec)
3638
job_submissions_excludes: IncludeExcludeDictType = {}

0 commit comments

Comments
 (0)