🐛 Enforce tag list order before comparison

This commit is contained in:
Wouter de Bruijn
2025-12-02 10:21:28 +01:00
parent 9cc229c2f7
commit c275e08953

View File

@@ -869,7 +869,9 @@ class PhysicalDevice:
# Check host tags
if config["tag_sync"]:
if remove_duplicates(host["tags"], sortkey="tag") == self.tags:
if remove_duplicates(host["tags"], sortkey="tag") == remove_duplicates(
self.tags, sortkey="tag"
):
self.logger.debug("Host %s: Tags in-sync.", self.name)
else:
self.logger.info("Host %s: Tags OUT of sync.", self.name)