From f31834fe4aecfe94b1f4c068e9988b53019e9309 Mon Sep 17 00:00:00 2001 From: Mark Woolley Date: Sun, 23 Jan 2022 11:00:39 +0000 Subject: [PATCH] split out --- plugins/modules/rds_instance.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/modules/rds_instance.py b/plugins/modules/rds_instance.py index 38233ef4779..7018956406f 100644 --- a/plugins/modules/rds_instance.py +++ b/plugins/modules/rds_instance.py @@ -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