mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
os_auth: display proper error message for exceptions (#20891)
This commit is contained in:
parent
352815ecbb
commit
f7e426e636
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ def main():
|
||||||
ansible_facts=dict(
|
ansible_facts=dict(
|
||||||
auth_token=cloud.auth_token,
|
auth_token=cloud.auth_token,
|
||||||
service_catalog=cloud.service_catalog))
|
service_catalog=cloud.service_catalog))
|
||||||
except shade.OpenStackCloudException as e:
|
except Exception as e:
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e), exception=traceback.format_exc())
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue