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"]:
|
if str(obj["vmid"]) in self.config.config["exclude_vmid"]:
|
||||||
continue
|
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"]
|
self.config.config["exclude_tags"]
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -212,7 +212,7 @@ def qemus():
|
||||||
"status": "running",
|
"status": "running",
|
||||||
"netout": 12159205236,
|
"netout": 12159205236,
|
||||||
"mem": 496179157,
|
"mem": 496179157,
|
||||||
"tags": "unmonitored,excluded,postgres"
|
"tags": "unmonitored;excluded;postgres"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"diskwrite": 0,
|
"diskwrite": 0,
|
||||||
|
|
Loading…
Reference in New Issue