Skip to content

Commit 8263906

Browse files
committed
add some tests
1 parent 2f1a4ea commit 8263906

File tree

2 files changed

+325
-18
lines changed

2 files changed

+325
-18
lines changed

internal/controller/linodemachine_controller_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ func getVPCLinodeInterfaceConfigFromDirectID(ctx context.Context, machineScope *
730730
// Check if a VPC interface already exists
731731
for i, netInterface := range linodeInterfaces {
732732
if netInterface.VPC != nil {
733-
linodeInterfaces[i].VPC.SubnetID = netInterface.VPC.SubnetID
733+
linodeInterfaces[i].VPC.SubnetID = subnetID
734734
if !isVPCInterfaceIPv6ConfigEmpty(ipv6Config) {
735735
linodeInterfaces[i].VPC.IPv6 = ipv6Config
736736
}

0 commit comments

Comments
 (0)