Skip to content

Commit

Permalink
Removed unused code comments
Browse files Browse the repository at this point in the history
Signed-off-by: mabhi <[email protected]>
  • Loading branch information
mabhi committed Oct 5, 2023
1 parent f6223fc commit 5efc3ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 0 additions & 20 deletions pkg/blockstorage/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5efc3ea

Please sign in to comment.