From a626f38e30edeb87604a05d188dab6d027c34820 Mon Sep 17 00:00:00 2001 From: Dmytro Vorotyntsev <2937451+vorotech@users.noreply.github.com> Date: Mon, 15 Feb 2021 10:35:32 +0200 Subject: [PATCH] dict Tags to list on restore_db_instance_from_db_snapshot Also, map Tags parameters from the dict to list during `restore_db_instance_from_db_snapshot` method additionally to existing `create_db_instance` and `create_db_instance_read_replica` This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/a3313a73946e35e89a7f9aabe8586cbe81906761 --- plugins/modules/rds_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/rds_instance.py b/plugins/modules/rds_instance.py index 0dd763c369f..8f3a7a39ae1 100644 --- a/plugins/modules/rds_instance.py +++ b/plugins/modules/rds_instance.py @@ -844,7 +844,7 @@ def get_parameters(client, module, parameters, method_name): if parameters.get('ProcessorFeatures') == [] and not method_name == 'modify_db_instance': parameters.pop('ProcessorFeatures') - if method_name == 'create_db_instance' or method_name == 'create_db_instance_read_replica': + if method_name in ['create_db_instance', 'create_db_instance_read_replica', 'restore_db_instance_from_db_snapshot']: if parameters.get('Tags'): parameters['Tags'] = ansible_dict_to_boto3_tag_list(parameters['Tags'])