mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix bug for setting ec2 tags
This commit is contained in:
parent
61c2eb9cb0
commit
b5500d9a4d
1 changed files with 2 additions and 2 deletions
|
@ -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()):
|
||||
|
|
Loading…
Reference in a new issue