cloud/amazon/aws_config_recorder: add empty resourceTypes list if undefined (#50286)

This commit is contained in:
Aaron Smith 2019-06-03 17:45:38 -05:00 committed by Jill R
parent 858e3a7272
commit 333f54ec3b

View file

@ -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())