From 7c65ad11e2914bc9774abd37cdd1ac455f1c9433 Mon Sep 17 00:00:00 2001 From: mmallet Date: Wed, 27 Nov 2019 08:53:51 +0100 Subject: [PATCH] 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. --- lib/ansible/modules/cloud/azure/azure_rm_storageaccount_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_storageaccount_info.py b/lib/ansible/modules/cloud/azure/azure_rm_storageaccount_info.py index 13fb556f77b..5849e9e47fb 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_storageaccount_info.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_storageaccount_info.py @@ -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)))