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`
  • Loading branch information
vorotech authored Feb 15, 2021
1 parent 0d24559 commit a3313a7
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 a3313a7

Please sign in to comment.