Skip to content

Commit d78fac9

Browse files
committed
fix
1 parent 78ccfc1 commit d78fac9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkg/cloudprovider/providers/oci/instances.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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-
}

0 commit comments

Comments
 (0)