Skip to content

Commit

Permalink
return cloudprovider.InstanceNotFound in opentack ExternalID()
Browse files Browse the repository at this point in the history
  • Loading branch information
sjenning committed Aug 30, 2016
1 parent 8675adf commit bde3966
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/providers/openstack/openstack_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde3966

Please sign in to comment.