diff --git a/lib/ansible/modules/cloud/amazon/lambda.py b/lib/ansible/modules/cloud/amazon/lambda.py index 15d0c09bfc3..623f6545fd1 100644 --- a/lib/ansible/modules/cloud/amazon/lambda.py +++ b/lib/ansible/modules/cloud/amazon/lambda.py @@ -554,6 +554,7 @@ def main(): 'SecurityGroupIds': vpc_security_group_ids}}) # Finally try to create function + current_version = None try: if not check_mode: response = client.create_function(**func_kwargs)