From 4f4e1950ab787604e698b40b9d7b21a93c1775f2 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Sat, 26 Feb 2022 18:05:18 +0100 Subject: [PATCH] fix: ensure vmid exclude compares the same datatypes (#152) --- prometheuspvesd/discovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheuspvesd/discovery.py b/prometheuspvesd/discovery.py index 17e825f..1e950d4 100644 --- a/prometheuspvesd/discovery.py +++ b/prometheuspvesd/discovery.py @@ -142,7 +142,7 @@ class Discovery(): if obj["status"] in map(str, self.config.config["exclude_state"]): continue - if obj["vmid"] in map(str, self.config.config["exclude_vmid"]): + if str(obj["vmid"]) in self.config.config["exclude_vmid"]: continue filtered.append(item.copy())