Skip to content

Commit

Permalink
Merge pull request #2639 from ovstuckrad/fix-get-subnet-id-for-lb
Browse files Browse the repository at this point in the history
[occm] Fix: Set instanceID to get subnet for loadbalancer.
  • Loading branch information
zetaab authored Sep 5, 2024
2 parents fb95c62 + 1719d5c commit 4b76079
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 @@ -496,7 +496,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 4b76079

Please sign in to comment.