Closed zodac closed 5 months ago
Hi, due to autokuma normally getting it's values from docker labels nested arrays need to be passed as a string and formatted as json. So this should work:
Toml:
name = "Site"
url = "my.url"
type = "http"
tags = '[{"tag_id": 1},{"tag_id": 2}]'
Json:
{
"name": "Site",
"type": "http",
"url": "my.url",
"tags": "[{\"tag_id\": 1},{\"tag_id\": 2}]"
}
Thanks, that did the job! :)
I am trying to add a static monitor and specify multiple tags. I can get it working fine with a single tag:
However, when I try and use 2 tags, I get the following error:
I tried with JSON too, and got a different bad syntax error:
This gave the error:
Apologies if I missed an example, I wasn't able to find one in the docs or previous issues.