Skip to content

Commit

Permalink
Fix for snapshot restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalv-netapp authored Oct 13, 2023
1 parent 3da6849 commit c5bcf4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage_drivers/azure/azure_anf.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ func (d *NASStorageDriver) initializeAzureSDKClient(
if err = json.Unmarshal(credFile, &clientConfig); err != nil {
return errors.New("error parsing azureAuthConfig: " + err.Error())
}

// Set SubscriptionID
d.Config.SubscriptionID = clientConfig.SubscriptionID
}

client, err := api.NewDriver(clientConfig)
Expand Down
3 changes: 3 additions & 0 deletions storage_drivers/azure/azure_anf_subvolume.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ func (d *NASBlockStorageDriver) initializeAzureSDKClient(
if err = json.Unmarshal(credFile, &clientConfig); err != nil {
return errors.New("error parsing azureAuthConfig: " + err.Error())
}

// Set SubscriptionID
d.Config.SubscriptionID = clientConfig.SubscriptionID
}

client, err := api.NewDriver(clientConfig)
Expand Down

0 comments on commit c5bcf4a

Please sign in to comment.