From 0b8b4f7feae6447d7c869dfcfaeebdeb7233875b 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` --- rds_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds_instance.py b/rds_instance.py index 0dd763c369f..8f3a7a39ae1 100644 --- a/rds_instance.py +++ b/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'])