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 ef9e5eb9eba..bed2f0410ce 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 *