fix: ensure vmid exclude compares the same datatypes (#152)

This commit is contained in:
Mathias Petermann 2022-02-26 18:05:18 +01:00 committed by GitHub
parent ab7b7d285a
commit 4f4e1950ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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())