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"]):
|
if obj["status"] in map(str, self.config.config["exclude_state"]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if obj["vmid"] in map(str, self.config.config["exclude_vmid"]):
|
if str(obj["vmid"]) in self.config.config["exclude_vmid"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
filtered.append(item.copy())
|
filtered.append(item.copy())
|
||||||
|
|
Loading…
Reference in New Issue