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}'."
This commit is contained in:
bfloyd89 2017-07-24 17:01:19 -04:00 committed by Sloane Hertel
parent 96d577c4c9
commit 1f637f06a5

View file

@ -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)