lambda: fix unboundLocalError in lambda (#46729)

This fix initializes current_version to None so that
module proceeds in check mode.

Fixes: #46654

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/46231/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent 80d977bac6
commit 32397531d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -554,6 +554,7 @@ def main():
'SecurityGroupIds': vpc_security_group_ids}}) 'SecurityGroupIds': vpc_security_group_ids}})
# Finally try to create function # Finally try to create function
current_version = None
try: try:
if not check_mode: if not check_mode:
response = client.create_function(**func_kwargs) response = client.create_function(**func_kwargs)

Loading…
Cancel
Save