From b4d35b1322a046ca3d8d6ce114152ae30156a36f Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 24 Jan 2024 10:52:35 +0100 Subject: [PATCH] fix: split tag string at semicolon instead of comma --- prometheuspvesd/discovery.py | 2 +- prometheuspvesd/test/fixtures/fixtures.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheuspvesd/discovery.py b/prometheuspvesd/discovery.py index 4f71ac7..ee961c6 100644 --- a/prometheuspvesd/discovery.py +++ b/prometheuspvesd/discovery.py @@ -132,7 +132,7 @@ class Discovery: if str(obj["vmid"]) in self.config.config["exclude_vmid"]: continue - if isinstance(obj["tags"], str) and not set(obj["tags"].split(",")).isdisjoint( + if isinstance(obj["tags"], str) and not set(obj["tags"].split(";")).isdisjoint( self.config.config["exclude_tags"] ): continue diff --git a/prometheuspvesd/test/fixtures/fixtures.py b/prometheuspvesd/test/fixtures/fixtures.py index bed5716..f03bf3a 100644 --- a/prometheuspvesd/test/fixtures/fixtures.py +++ b/prometheuspvesd/test/fixtures/fixtures.py @@ -212,7 +212,7 @@ def qemus(): "status": "running", "netout": 12159205236, "mem": 496179157, - "tags": "unmonitored,excluded,postgres" + "tags": "unmonitored;excluded;postgres" }, { "diskwrite": 0,