azure_rm_storageaccount_info: Fix list_all method (#64321)
The 'azure_rm_storageaccount_info' module was calling the storage client 'list_by_resource_group()' method rather than the 'list()' one, leading to callers not being able to fetch all the storage accounts of their subscription. Issue: #64319 Testing Done: was successfully able to call the module and retrieve all the storage accounts in the subscription without having to specify a resource group.
This commit is contained in:
parent
4b240a5d74
commit
7c65ad11e2
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ class AzureRMStorageAccountInfo(AzureRMModuleBase):
|
|||
def list_all(self):
|
||||
self.log('List all items')
|
||||
try:
|
||||
response = self.storage_client.storage_accounts.list_by_resource_group(self.resource_group)
|
||||
response = self.storage_client.storage_accounts.list()
|
||||
except Exception as exc:
|
||||
self.fail("Error listing all items - {0}".format(str(exc)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue