Merge pull request #5078 from brandonhilkert/fix-ec2-tags

Fix checking for existence of EC2 tags
reviewable/pr18780/r1
jctanner 11 years ago
commit 21144a3014

@ -159,7 +159,7 @@ def main():
tagdict[tag.name] = tag.value tagdict[tag.name] = tag.value
if state == 'present': 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) 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()):

Loading…
Cancel
Save