cloud/amazon/aws_config_recorder: add empty resourceTypes list if undefined (#50286)
This commit is contained in:
parent
858e3a7272
commit
333f54ec3b
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue