Merge pull request #31618 from sjenning/fix-externalid-error
Automatic merge from submit-queue return cloudprovider.InstanceNotFound for Instance interface ExternalID() Fixes #31615 @kubernetes/rh-cluster-infra @ncdc @anguslees
This commit is contained in:
@@ -136,6 +136,9 @@ func (i *Instances) NodeAddresses(name string) ([]api.NodeAddress, error) {
|
||||
func (i *Instances) ExternalID(name string) (string, error) {
|
||||
srv, err := getServerByName(i.compute, name)
|
||||
if err != nil {
|
||||
if err == ErrNotFound {
|
||||
return "", cloudprovider.InstanceNotFound
|
||||
}
|
||||
return "", err
|
||||
}
|
||||
return srv.ID, nil
|
||||
|
Reference in New Issue
Block a user