Skip to content

Commit 4b76079

Browse files
authored
Merge pull request #2639 from ovstuckrad/fix-get-subnet-id-for-lb
[occm] Fix: Set instanceID to get subnet for loadbalancer.
2 parents fb95c62 + 1719d5c commit 4b76079

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
@@ -496,7 +496,7 @@ func getSubnetIDForLB(network *gophercloud.ServiceClient, node corev1.Node, pref
496496
return "", err
497497
}
498498

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

0 commit comments

Comments
 (0)