Commit 33afaebb by Brandon Hilkert

Fix checking for existence of EC2 tags

parent 30948ae0
......@@ -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()):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment