rds_instance: allow empty iops and storage_type (#57943)

pull/57984/head
Will Thames 5 years ago committed by René Moser
parent c58b715f82
commit a66687f2d2

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

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

Loading…
Cancel
Save