mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07: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:
parent
7d397e7d3e
commit
710b6c7209
2 changed files with 48 additions and 1 deletions
|
@ -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}})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue