Skip to content

Commit 5420360

Browse files
committed
Add a comment to clarify assertion
1 parent 58255e3 commit 5420360

File tree

1 file changed

+1
-0
lines changed
  • src/dstack/_internal/server/services

1 file changed

+1
-0
lines changed

src/dstack/_internal/server/services/fleets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ async def apply_plan(
413413
current=current_fleet_sensitive.spec.configuration.ssh_config.hosts,
414414
new=spec.configuration.ssh_config.hosts,
415415
)
416+
# `_check_can_update_fleet_spec` ensures hosts are not changed
416417
assert not changed_hosts, changed_hosts
417418
active_instance_nums: set[int] = set()
418419
removed_instance_nums: list[int] = []

0 commit comments

Comments
 (0)