diff --git a/go.mod b/go.mod index 882869516e4..7977cf6f262 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ require ( ) -require github.com/Azure/go-autorest/autorest v0.11.27 +require github.com/Azure/go-autorest/autorest v0.11.27 // indirect require ( github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect diff --git a/pkg/blockstorage/azure/client.go b/pkg/blockstorage/azure/client.go index 921f1032228..50880b53f8c 100644 --- a/pkg/blockstorage/azure/client.go +++ b/pkg/blockstorage/azure/client.go @@ -74,27 +74,7 @@ func NewClient(ctx context.Context, config map[string]string) (*Client, error) { return nil, errors.Wrap(err, "Cannot get subscriptionID from instance metadata") } } - /* - if id, ok := config[blockstorage.AzureCloudEnvironmentID]; !ok || id == "" { - config[blockstorage.AzureCloudEnvironmentID] = azure.PublicCloud.Name - } - */ - /* - env, err := azure.EnvironmentFromName(config[blockstorage.AzureCloudEnvironmentID]) - if err != nil { - return nil, errors.Wrap(err, "Failed to fetch the cloud environment.") - } - authorizer, err := getAuthorizer(env, config) - if err != nil { - return nil, err - } - - _, ok = config[blockstorage.AzureResurceMgrEndpoint] - if !ok { - config[blockstorage.AzureResurceMgrEndpoint] = env.ResourceManagerEndpoint - } - */ cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { return nil, err