From a5ec29ed4971d6a94768c0218ee9818db748b226 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Tue, 19 Jun 2018 10:11:02 -0400 Subject: [PATCH] Fix exception message in AWS lambda module --- lib/ansible/modules/cloud/amazon/lambda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/lambda.py b/lib/ansible/modules/cloud/amazon/lambda.py index b172468246d..0a7ff2bbbbc 100644 --- a/lib/ansible/modules/cloud/amazon/lambda.py +++ b/lib/ansible/modules/cloud/amazon/lambda.py @@ -277,8 +277,8 @@ def set_tag(client, module, tags, function): try: current_tags = client.list_tags(Resource=arn).get('Tags', {}) except ClientError as e: - module.fail_json(msg="Unable to list tags: {0}".format(to_native(e), - exception=traceback.format_exc())) + module.fail_json(msg="Unable to list tags: {0}".format(to_native(e)), + exception=traceback.format_exc()) tags_to_add, tags_to_remove = compare_aws_tags(current_tags, tags, purge_tags=True)