mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Fixed dicts comparison for tags
This commit is contained in:
parent
e4dd0d98d4
commit
a5a9c92fcd
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ def update_vpc_tags(vpc, module, vpc_obj, tags, name):
|
||||||
tags.update({'Name': name})
|
tags.update({'Name': name})
|
||||||
try:
|
try:
|
||||||
current_tags = dict((t.name, t.value) for t in vpc.get_all_tags(filters={'resource-id': vpc_obj.id}))
|
current_tags = dict((t.name, t.value) for t in vpc.get_all_tags(filters={'resource-id': vpc_obj.id}))
|
||||||
if sorted(current_tags) != sorted(tags):
|
if cmp(tags, current_tags):
|
||||||
vpc.create_tags(vpc_obj.id, tags)
|
vpc.create_tags(vpc_obj.id, tags)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue