Fix checking for existence of EC2 tags
This commit is contained in:
parent
a1f1f459d8
commit
a6879d14ca
1 changed files with 1 additions and 1 deletions
|
@ -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()):
|
||||
|
|
Loading…
Reference in a new issue