Skip to content

Commit 82e24df

Browse files
Set DeviceIndex to 0 for all the interfaces for the headnode
Signed-off-by: Francesco Giordano <[email protected]>
1 parent 33483d9 commit 82e24df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/src/pcluster/templates/cluster_stack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,11 +858,11 @@ def _add_head_node(self):
858858
network_interface_id=self._head_eni.ref,
859859
)
860860
]
861-
for device_index in range(1, head_node.max_network_interface_count):
861+
for network_interface_index in range(1, head_node.max_network_interface_count):
862862
head_lt_nw_interfaces.append(
863863
ec2.CfnLaunchTemplate.NetworkInterfaceProperty(
864-
device_index=device_index,
865-
network_card_index=device_index,
864+
device_index=0,
865+
network_card_index=network_interface_index,
866866
groups=head_lt_security_groups,
867867
subnet_id=head_node.networking.subnet_id,
868868
)

0 commit comments

Comments
 (0)