mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-02 16:09:41 +02:00
Refactor isdisjoint
This commit is contained in:
parent
21c29b471e
commit
7cacd0c5b2
|
@ -157,9 +157,9 @@ 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(map(str, self.config.config["exclude_tags"])):
|
||||
if isinstance(obj["tags"], str) and not set(obj["tags"].split(",")).isdisjoint(
|
||||
self.config.config["exclude_tags"]
|
||||
):
|
||||
continue
|
||||
|
||||
filtered.append(item.copy())
|
||||
|
|
Loading…
Reference in New Issue
Block a user