Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Jan 13, 2023
1 parent 8b2e6b2 commit ad83771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/azure_storageaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (az *Cloud) EnsureStorageAccount(ctx context.Context, accountOptions *Accou
}
defer func() {
if retErr != nil {
klog.V(2).Infof("delete storage account %s because error happened after storage account created: %v", accountName, retErr)
klog.Errorf("delete storage account %s because error happened after storage account created: %v", accountName, retErr)
if derr := az.StorageAccountClient.Delete(ctx, subsID, resourceGroup, accountName); derr != nil {
klog.Errorf("failed to delete storage account %s, error: %v", accountName, derr)
}
Expand Down

0 comments on commit ad83771

Please sign in to comment.