From 33afaebb95832e3bc859da63902dc2d6dc8bc280 Mon Sep 17 00:00:00 2001 From: Brandon Hilkert Date: Wed, 27 Nov 2013 11:01:42 -0500 Subject: [PATCH] Fix checking for existence of EC2 tags --- library/cloud/ec2_tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/ec2_tag b/library/cloud/ec2_tag index 7ea2e8dab6..71e6792698 100644 --- a/library/cloud/ec2_tag +++ b/library/cloud/ec2_tag @@ -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()):