rds_instance: allow empty iops and storage_type (#57943)

This commit is contained in:
Will Thames 2019-06-18 15:56:01 +10:00 committed by René Moser
parent c58b715f82
commit a66687f2d2
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- rds_instance no longer fails when passing neither storage_type nor iops

View file

@ -847,7 +847,7 @@ def get_options_with_changing_values(client, module, parameters):
if cloudwatch_logs_enabled:
parameters['CloudwatchLogsExportConfiguration'] = cloudwatch_logs_enabled
if not module.params['storage_type']:
parameters.pop('Iops')
parameters.pop('Iops', None)
instance = get_instance(client, module, instance_id)
updated_parameters = get_changing_options_with_inconsistent_keys(parameters, instance, purge_cloudwatch_logs)