Properly propagate the config parameter to the foreach iterator in order
to fix get_first() lookups.
Fixes #1734.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
function get_first(self, config, stype, option, default)
local rv = default
function get_first(self, config, stype, option, default)
local rv = default
- self:foreach(conf, stype, function(s)
+ self:foreach(config, stype, function(s)
local val = not option and s[".name"] or s[option]
if type(default) == "number" then
local val = not option and s[".name"] or s[option]
if type(default) == "number" then