mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
[cloud] bugfix for lambda module with empty environment (#22196)
* lambda module - failing test case: shows lambda create mishandles empty environment * lambda module - fix lambda create with empty environment * lambda module - fix lambda create with empty environment - style fixes
This commit is contained in:
@@ -454,9 +454,11 @@ def main():
|
||||
'Code': code,
|
||||
'Timeout': timeout,
|
||||
'MemorySize': memory_size,
|
||||
'Environment':{'Variables': environment_variables}
|
||||
}
|
||||
|
||||
if environment_variables:
|
||||
func_kwargs.update({'Environment': {'Variables': environment_variables}})
|
||||
|
||||
if dead_letter_arn:
|
||||
func_kwargs.update({'DeadLetterConfig': {'TargetARN': dead_letter_arn}})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user