From 5cab159bdade2d93c0d737cfcf161d6b8ce59914 Mon Sep 17 00:00:00 2001 From: Christoph Dwertmann Date: Mon, 2 Jun 2014 15:11:53 +1000 Subject: [PATCH] Don't use deprecated BaseException.message in keystone_user fixes error "failed to parse: TypeError: is not JSON serializable" --- library/cloud/keystone_user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cloud/keystone_user b/library/cloud/keystone_user index d6529b537ed..f3295b7f19b 100644 --- a/library/cloud/keystone_user +++ b/library/cloud/keystone_user @@ -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)