Skip to content

Commit

Permalink
dict Tags to list on restore_db_instance_from_db_snapshot
Browse files Browse the repository at this point in the history
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: ansible-collections/community.aws@a3313a7
  • Loading branch information
vorotech authored and goneri committed Sep 21, 2022
1 parent 1fb54e4 commit d71615a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/rds_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down

0 comments on commit d71615a

Please sign in to comment.