Skip to content

Commit aa96f15

Browse files
committed
fix: use fleet blocks config for string SSH hosts in create_fleet_ssh_instance_model
When SSH fleet hosts are specified as plain strings (e.g. hosts: ["192.168.0.1"]), the fleet-level blocks configuration is ignored and hardcoded to 1. This prevents instances from being divided into multiple GPU blocks. The fix uses spec.configuration.blocks instead of the hardcoded value, consistent with how the else branch reads host.blocks for SSHHostParams objects. Fixes #3475
1 parent d01981c commit aa96f15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/dstack/_internal/server/services

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ async def create_fleet_ssh_instance_model(
684684
port = ssh_params.port
685685
proxy_jump = ssh_params.proxy_jump
686686
internal_ip = None
687-
blocks = 1
687+
blocks = spec.configuration.blocks
688688
else:
689689
hostname = host.hostname
690690
ssh_user = host.user or ssh_params.user

0 commit comments

Comments
 (0)