File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
pkg/cloudprovider/providers/oci Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ func (cp *CloudProvider) checkOpenShiftNodesSecondaryVnicByInstance(instanceID s
347347 return false , errors .Wrap (err , "error listing all the nodes using node informer" )
348348 }
349349 for _ , node := range nodeList {
350- providerID , err := MapProviderIDToInstanceID (node .Spec .ProviderID )
350+ providerID , err := MapProviderIDToResourceID (node .Spec .ProviderID )
351351 if err != nil {
352352 return false , errors .New ("Failed to map providerID to instanceID." )
353353 }
@@ -361,13 +361,3 @@ func (cp *CloudProvider) checkOpenShiftNodesSecondaryVnicByInstance(instanceID s
361361 }
362362 return false , errors .New ("Failed to check OpenShift node using node lables. Returning false" )
363363}
364-
365- // contains is a utility method to check if a string is part of a slice
366- func contains (s []string , e string ) bool {
367- for _ , a := range s {
368- if a == e {
369- return true
370- }
371- }
372- return false
373- }
You can’t perform that action at this time.
0 commit comments