From c275e089539688c9203c3db5755393fcefa6a672 Mon Sep 17 00:00:00 2001 From: Wouter de Bruijn Date: Tue, 2 Dec 2025 10:21:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Enforce=20tag=20list=20order=20b?= =?UTF-8?q?efore=20comparison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/device.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/device.py b/modules/device.py index cc32390..93ba0f6 100644 --- a/modules/device.py +++ b/modules/device.py @@ -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)