From 6bc1e802e3b1ae4d2ece0e68a65c14c05b89eb83 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 16 Jun 2017 21:08:36 +0530 Subject: [PATCH] Rectify traceback.format_exc() call (#25773) Fix adds correct call to traceback.format_exc method Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/amazon/cloudfront_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/cloudfront_facts.py b/lib/ansible/modules/cloud/amazon/cloudfront_facts.py index dae48e5ab6..ecb72fe8e5 100644 --- a/lib/ansible/modules/cloud/amazon/cloudfront_facts.py +++ b/lib/ansible/modules/cloud/amazon/cloudfront_facts.py @@ -272,7 +272,7 @@ class CloudFrontServiceManager: return self.paginated_response(func) except botocore.exceptions.ClientError as e: self.module.fail_json(msg="Error describing distribution configuration - " + str(e), - exception=traceback.format_exec(e), + exception=traceback.format_exc(), **camel_dict_to_snake_dict(e.response)) def get_origin_access_identity(self, origin_access_identity_id):