mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-05 07:49:10 -07:00
module_utils/ec2: fix boto3 tags to remove (#25277)
* Fix boto3 tags to remove; unable to remove a list of strings, need list of {'Key': key} * pep8 fix * cannot bugfix due to differences in AWS APIs - just document * add more info to guidelines for using compare_aws_tags
This commit is contained in:
parent
b2b0938aff
commit
7bebc83dcf
2 changed files with 6 additions and 3 deletions
|
@ -314,4 +314,6 @@ to modify and a list of tag key names that you need to remove. Purge is True by
|
|||
existing tags will not be modified.
|
||||
|
||||
This function is useful when using boto3 'add_tags' and 'remove_tags' functions. Be sure to use the other helper function
|
||||
'boto3_tag_list_to_ansible_dict' to get an appropriate tag dict before calling this function.
|
||||
'boto3_tag_list_to_ansible_dict' to get an appropriate tag dict before calling this function. Since the AWS APIs are not
|
||||
uniform (e.g. EC2 versus Lambda) this will work without modification for some (Lambda) and others may need modification
|
||||
before using these values (such as EC2, with requires the tags to unset to be in the form [{'Key': key1}, {'Key': key2}]).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue