Update go dependencies (#5170)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-26 14:56:11 -03:00 committed by GitHub
parent a830e931d5
commit f00f49a295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 1126 additions and 368 deletions

View file

@ -98,6 +98,10 @@ func GetInstanceProviderID(ctx context.Context, cloud Interface, nodeName types.
}
instanceID, err := instances.InstanceID(ctx, nodeName)
if err != nil {
if err == NotImplemented {
return "", err
}
return "", fmt.Errorf("failed to get instance ID from cloud provider: %v", err)
}
return cloud.ProviderName() + "://" + instanceID, nil