mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-11 03:10:59 +00:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user