mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-22 01:10:39 +00:00
fix: ensure vmid exclude compares the same datatypes (#152)
This commit is contained in:
parent
ab7b7d285a
commit
4f4e1950ab
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user