mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
Bug | Error message being swallowed in azure_rm_common.py (#33298)
This commit is contained in:
parent
b10859c192
commit
a18b7d9b01
8 changed files with 11 additions and 28 deletions
|
@ -415,8 +415,8 @@ class AzureRMModuleBase(object):
|
|||
'''
|
||||
try:
|
||||
return self.rm_client.resource_groups.get(resource_group)
|
||||
except CloudError:
|
||||
self.fail("Parameter error: resource group {0} not found".format(resource_group))
|
||||
except CloudError as cloud_error:
|
||||
self.fail("Error retrieving resource group {0} - {1}".format(resource_group, cloud_error.message))
|
||||
except Exception as exc:
|
||||
self.fail("Error retrieving resource group {0} - {1}".format(resource_group, str(exc)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue