mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-15 22:20:39 +00:00
fix: split tag string at semicolon instead of comma
This commit is contained in:
parent
aa3a82ae08
commit
b4d35b1322
@ -132,7 +132,7 @@ 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(
|
||||
if isinstance(obj["tags"], str) and not set(obj["tags"].split(";")).isdisjoint(
|
||||
self.config.config["exclude_tags"]
|
||||
):
|
||||
continue
|
||||
|
2
prometheuspvesd/test/fixtures/fixtures.py
vendored
2
prometheuspvesd/test/fixtures/fixtures.py
vendored
@ -212,7 +212,7 @@ def qemus():
|
||||
"status": "running",
|
||||
"netout": 12159205236,
|
||||
"mem": 496179157,
|
||||
"tags": "unmonitored,excluded,postgres"
|
||||
"tags": "unmonitored;excluded;postgres"
|
||||
},
|
||||
{
|
||||
"diskwrite": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user