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)