From 46b4622eba9c65bf96dcaed0d23ecbc560288c76 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. --- cloud/openstack/os_keystone_domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/openstack/os_keystone_domain.py b/cloud/openstack/os_keystone_domain.py index ef9e5eb9eba..bed2f0410ce 100644 --- a/cloud/openstack/os_keystone_domain.py +++ b/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 *