mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07: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:
parent
80d977bac6
commit
32397531d0
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue