mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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({
|
params['recordingGroup'].update({
|
||||||
'resourceTypes': module.params.get('recording_group').get('resource_types')
|
'resourceTypes': module.params.get('recording_group').get('resource_types')
|
||||||
})
|
})
|
||||||
|
else:
|
||||||
|
params['recordingGroup'].update({
|
||||||
|
'resourceTypes': []
|
||||||
|
})
|
||||||
|
|
||||||
client = module.client('config', retry_decorator=AWSRetry.jittered_backoff())
|
client = module.client('config', retry_decorator=AWSRetry.jittered_backoff())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user