rds_instance: allow empty iops and storage_type (#57943)
This commit is contained in:
parent
c58b715f82
commit
a66687f2d2
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/rds_instance_iops_fix.yaml
Normal file
2
changelogs/fragments/rds_instance_iops_fix.yaml
Normal file
|
@ -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…
Reference in a new issue