Hello mate,
I think there is an issue with the overseer custom template where if I run a test it basically says that the overseer template validation fails expecting a string and finding nil.
Here is the offending code:
see.register_template {
generator = function()
local logHandler = io.popen [[fd -e log]]
local ret = {}
if logHandler then
local logs = logHandler:read "*a"
logHandler:close()
for log in logs:gmatch "([^\r\n]+)" do
table.insert(ret, {
name = "Show " .. log,
builder = function()
return {
name = "Show " .. log,
cmd = "tail --follow --retry " .. log,
}
end,
priority = 1000,
params = {},
})
end
end
return ret
end,
}
end
I think the tail fails and ret is just an empty {}.
Hello mate, I think there is an issue with the overseer custom template where if I run a test it basically says that the overseer template validation fails expecting a string and finding nil.
Here is the offending code:
I think the
tail
fails andret
is just an empty{}
.