mod_external_services: Also validate services added by other modules

This ensures that problems with entries added other modules, e.g.
mod_turn_external, are reported on startup. However, this depends on
load order and whether a `module:depends()` call comes before the
`module:add_item()` call. A followup commit will do something about
that.
This commit is contained in:
Kim Alvefur 2021-06-21 22:38:30 +02:00
parent d4c3f44ade
commit f53ff863f0

View file

@ -100,7 +100,8 @@ end
function module.load()
-- Trigger errors on startup
local services = configured_services / prepare;
local extras = module:get_host_items("external_service");
local services = ( configured_services + extras ) / prepare;
if #services == 0 then
module:log("warn", "No services configured or all had errors");
end