Skip to content

Commit c21ee1a

Browse files
Fix: Set instanceID to get subnet for loadbalancer. (kubernetes#2651)
Co-authored-by: Ole von Stuckrad <[email protected]>
1 parent 26ca520 commit c21ee1a

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
@@ -715,7 +715,7 @@ func getSubnetIDForLB(network *gophercloud.ServiceClient, node corev1.Node, pref
715715
return "", err
716716
}
717717

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

0 commit comments

Comments
 (0)