Skip to content

Commit 976675a

Browse files
Fix: Set instanceID to get subnet for loadbalancer. (#2649)
Co-authored-by: Ole von Stuckrad <[email protected]>
1 parent 0b4daa1 commit 976675a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ func getSubnetIDForLB(network *gophercloud.ServiceClient, node corev1.Node, pref
479479
return "", err
480480
}
481481

482-
_, instanceID, err := instanceIDFromProviderID(node.Spec.ProviderID)
482+
instanceID, _, err := instanceIDFromProviderID(node.Spec.ProviderID)
483483
if err != nil {
484484
return "", fmt.Errorf("can't determine instance ID from ProviderID when autodetecting LB subnet: %w", err)
485485
}

0 commit comments

Comments
 (0)