1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix checking for existence of EC2 tags

This commit is contained in:
Brandon Hilkert 2013-11-27 11:01:42 -05:00
parent 30948ae0dc
commit 33afaebb95

View file

@ -159,7 +159,7 @@ def main():
tagdict[tag.name] = tag.value
if state == 'present':
if set(tags).issubset(set(tagdict)):
if set(tags.items()).issubset(set(tagdict.items())):
module.exit_json(msg="Tags already exists in %s." %resource, changed=False)
else:
for (key, value) in set(tags.items()):