Commit 5cab159b by Christoph Dwertmann

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"
parent 6bc056e0
......@@ -337,9 +337,9 @@ def main():
if check_mode:
# If we have a failure in check mode
module.exit_json(changed=True,
msg="exception: %s" % e.message)
msg="exception: %s" % e)
else:
module.fail_json(msg=e.message)
module.fail_json(msg="exception: %s" % e)
else:
module.exit_json(**d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment