Fix exception output for os_keystone_domain.
The message attribute of a shade exception is not very helpful. Converting to a full string will contain many more details.
This commit is contained in:
parent
7f1ccad39b
commit
ccee183143
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ def main():
|
||||||
module.exit_json(changed=changed)
|
module.exit_json(changed=changed)
|
||||||
|
|
||||||
except shade.OpenStackCloudException as e:
|
except shade.OpenStackCloudException as e:
|
||||||
module.fail_json(msg=e.message)
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
Loading…
Reference in a new issue