Skip to content

Commit

Permalink
Merge pull request #83952 from beautytiger/dev-191015-azure-bugfix
Browse files Browse the repository at this point in the history
fix account key getting logic in azure
  • Loading branch information
k8s-ci-robot committed Nov 7, 2019
2 parents 22c0dcd + 6872e18 commit 9339b1f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,9 @@ func (c *BlobDiskController) getStorageAccountKey(SAName string) (string, error)
klog.Warningf("azureDisk - account %s was not cached while getting keys", SAName)
return *v.Value, nil
}
c.accounts[SAName].key = *v.Value
return c.accounts[SAName].key, nil
}

c.accounts[SAName].key = *v.Value
return c.accounts[SAName].key, nil
}

return "", fmt.Errorf("couldn't find key named key1 in storage account:%s keys", SAName)
Expand Down

0 comments on commit 9339b1f

Please sign in to comment.