From 1f637f06a5ab68939cecffbba37ea49d1eb1a36f Mon Sep 17 00:00:00 2001 From: bfloyd89 Date: Mon, 24 Jul 2017 17:01:19 -0400 Subject: [PATCH] Make lambda_event.py python 2.6 compatible (#27241) "Changed in version 2.7: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'." --- lib/ansible/modules/cloud/amazon/lambda_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/lambda_event.py b/lib/ansible/modules/cloud/amazon/lambda_event.py index f24619f12f5..ece7eb0be91 100644 --- a/lib/ansible/modules/cloud/amazon/lambda_event.py +++ b/lib/ansible/modules/cloud/amazon/lambda_event.py @@ -416,7 +416,7 @@ def main(): validate_params(module, aws) - this_module_function = getattr(this_module, 'lambda_event_{}'.format(module.params['event_source'].lower())) + this_module_function = getattr(this_module, 'lambda_event_{0}'.format(module.params['event_source'].lower())) results = this_module_function(module, aws)