Skip to content

Commit

Permalink
split out
Browse files Browse the repository at this point in the history
  • Loading branch information
marknet15 committed Jan 23, 2022
1 parent defa3ae commit f31834f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/modules/rds_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,11 @@ def get_options_with_changing_values(client, module, parameters):
new_iops = module.params.get('iops')
new_allocated_storage = module.params.get('allocated_storage')

if (current_iops != new_iops) or (current_allocated_storage != new_allocated_storage):
if current_iops != new_iops:
parameters['AllocatedStorage'] = new_allocated_storage
parameters['Iops'] = new_iops

if current_allocated_storage != new_allocated_storage:
parameters['AllocatedStorage'] = new_allocated_storage
parameters['Iops'] = new_iops

Expand Down

0 comments on commit f31834f

Please sign in to comment.