mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
cloud/amazon/aws_config_recorder: add empty resourceTypes list if undefined (#50286)
This commit is contained in:
@@ -184,6 +184,10 @@ def main():
|
||||
params['recordingGroup'].update({
|
||||
'resourceTypes': module.params.get('recording_group').get('resource_types')
|
||||
})
|
||||
else:
|
||||
params['recordingGroup'].update({
|
||||
'resourceTypes': []
|
||||
})
|
||||
|
||||
client = module.client('config', retry_decorator=AWSRetry.jittered_backoff())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user