use ListByResourceGroup instead of List()

This commit is contained in:
andyzhangx 2017-11-28 08:04:14 +00:00
parent 24042ce6e7
commit 090c67539a

View File

@ -487,7 +487,7 @@ func (c *BlobDiskController) getDiskCount(SAName string) (int, error) {
} }
func (c *BlobDiskController) getAllStorageAccounts() (map[string]*storageAccountState, error) { func (c *BlobDiskController) getAllStorageAccounts() (map[string]*storageAccountState, error) {
accountListResult, err := c.common.cloud.StorageAccountClient.List() accountListResult, err := c.common.cloud.StorageAccountClient.ListByResourceGroup(c.common.resourceGroup)
if err != nil { if err != nil {
return nil, err return nil, err
} }