Commit cf667fc4 by Michael DeHaan

Merge pull request #4473 from harrisongu/patch-1

Fix bug for setting ec2 tags
parents 61c2eb9c b5500d9a
......@@ -181,8 +181,8 @@ def main():
tagdict[tag.name] = tag.value
if state == 'present':
if set(tags) == set(tagdict):
module.exit_json(msg="Tags already match for %s." %resource, changed=False)
if set(tags).issubset(set(tagdict)):
module.exit_json(msg="Tags already exists in %s." %resource, changed=False)
else:
for (key, value) in set(tags.items()):
if (key, value) not in set(tagdict.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