mirror of https://github.com/k3s-io/k3s
return cloudprovider.InstanceNotFound in opentack ExternalID()
parent
8675adf138
commit
bde3966699
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue