mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #4473 from harrisongu/patch-1
Fix bug for setting ec2 tags
This commit is contained in:
@@ -181,8 +181,8 @@ def main():
|
|||||||
tagdict[tag.name] = tag.value
|
tagdict[tag.name] = tag.value
|
||||||
|
|
||||||
if state == 'present':
|
if state == 'present':
|
||||||
if set(tags) == set(tagdict):
|
if set(tags).issubset(set(tagdict)):
|
||||||
module.exit_json(msg="Tags already match for %s." %resource, changed=False)
|
module.exit_json(msg="Tags already exists in %s." %resource, changed=False)
|
||||||
else:
|
else:
|
||||||
for (key, value) in set(tags.items()):
|
for (key, value) in set(tags.items()):
|
||||||
if (key, value) not in set(tagdict.items()):
|
if (key, value) not in set(tagdict.items()):
|
||||||
|
|||||||
Reference in New Issue
Block a user