Skip to content

Commit c1126ba

Browse files
authored
Fix backward compatibility when creating fleets (#2727)
Fix apply plan excludes being formed incorrectly, resulting in broken client-to-server backward compatibility.
1 parent b3090a2 commit c1126ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dstack/api/server/_fleets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _get_apply_plan_excludes(plan_input: ApplyFleetPlanInput) -> Dict:
8383
apply_plan_excludes = {}
8484
spec_excludes = _get_fleet_spec_excludes(plan_input.spec)
8585
if spec_excludes:
86-
apply_plan_excludes["spec"] = apply_plan_excludes
86+
apply_plan_excludes["spec"] = spec_excludes
8787
current_resource = plan_input.current_resource
8888
if current_resource is not None:
8989
current_resource_excludes = {}

0 commit comments

Comments
 (0)