mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-06-02 07:59:40 +02:00
Improve check if tags are present on host
This commit is contained in:
parent
611d182e5a
commit
a11531dab3
|
@ -156,7 +156,7 @@ class Discovery():
|
|||
|
||||
if (
|
||||
len(self.config.config["include_tags"]) > 0 and (
|
||||
isinstance(obj["tags"], dict)
|
||||
bool(obj["tags"]) is False # continue if tags is not set
|
||||
or set(obj["tags"].split(",")).isdisjoint(self.config.config["include_tags"])
|
||||
)
|
||||
):
|
||||
|
|
Loading…
Reference in New Issue
Block a user