From ccee1831437bd81caf040b34652a5e47144ac55b Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Tue, 19 Jan 2016 12:17:36 -0500 Subject: [PATCH] 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. --- .../modules/extras/cloud/openstack/os_keystone_domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/openstack/os_keystone_domain.py b/lib/ansible/modules/extras/cloud/openstack/os_keystone_domain.py index ef9e5eb9eb..bed2f0410c 100644 --- a/lib/ansible/modules/extras/cloud/openstack/os_keystone_domain.py +++ b/lib/ansible/modules/extras/cloud/openstack/os_keystone_domain.py @@ -181,7 +181,7 @@ def main(): module.exit_json(changed=changed) except shade.OpenStackCloudException as e: - module.fail_json(msg=e.message) + module.fail_json(msg=str(e)) from ansible.module_utils.basic import *