mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Don't use deprecated BaseException.message in keystone_user
fixes error "failed to parse: <attribute 'message' of 'exceptions.BaseException' objects> TypeError: <attribute 'message' of 'exceptions.BaseException' objects> is not JSON serializable"
This commit is contained in:
parent
6bc056e012
commit
5cab159bda
1 changed files with 2 additions and 2 deletions
|
@ -337,9 +337,9 @@ def main():
|
||||||
if check_mode:
|
if check_mode:
|
||||||
# If we have a failure in check mode
|
# If we have a failure in check mode
|
||||||
module.exit_json(changed=True,
|
module.exit_json(changed=True,
|
||||||
msg="exception: %s" % e.message)
|
msg="exception: %s" % e)
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=e.message)
|
module.fail_json(msg="exception: %s" % e)
|
||||||
else:
|
else:
|
||||||
module.exit_json(**d)
|
module.exit_json(**d)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue