Skip to content

Commit

Permalink
Fix: Set instanceID to get subnet for loadbalancer. (#2649)
Browse files Browse the repository at this point in the history
Co-authored-by: Ole von Stuckrad <o.vstuckrad@syseleven.de>
  • Loading branch information
k8s-infra-cherrypick-robot and ovstuckrad authored Sep 17, 2024
1 parent 0b4daa1 commit 976675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/openstack/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func getSubnetIDForLB(network *gophercloud.ServiceClient, node corev1.Node, pref
return "", err
}

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

0 comments on commit 976675a

Please sign in to comment.