diff --git a/lib/ansible/modules/cloud/azure/azure_rm_resourcegroup_facts.py b/lib/ansible/modules/cloud/azure/azure_rm_resourcegroup_facts.py index 7dbcc74ea1..768302978d 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_resourcegroup_facts.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_resourcegroup_facts.py @@ -144,7 +144,7 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase): try: response = self.rm_client.resource_groups.list() except CloudError as exc: - self.fail("Failed to list all items - {1}".format(str(exc))) + self.fail("Failed to list all items - {0}".format(str(exc))) results = [] for item in response: