diff --git a/pkg/openstack/instances.go b/pkg/openstack/instances.go index f9b617736f..81edb97f75 100644 --- a/pkg/openstack/instances.go +++ b/pkg/openstack/instances.go @@ -208,7 +208,7 @@ func getServerByName(ctx context.Context, client *gophercloud.ServiceClient, nam } if len(serverList) == 0 { - return nil, errors.ErrNotFound + return nil, cloudprovider.InstanceNotFound } return &serverList[0], nil