From c5bd62df9883ccb38e204d2f62531db958d1a9a6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 20 Jun 2018 10:42:57 +0100 Subject: prosodyctl: check: Replace loaded-module calculation with a more accurate query to modulemanager, fixes #1171 --- prosodyctl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 086e5782..e8f7075a 100755 --- a/prosodyctl +++ b/prosodyctl @@ -1079,9 +1079,11 @@ function commands.check(arg) target_hosts:remove("localhost"); end - local modules = set.new(it.to_array(it.values(host_options.modules_enabled or {}))) - + set.new(it.to_array(it.values(configmanager.get("*", "modules_enabled") or {}))) - + set.new({ configmanager.get(host, "component_module") }); + local modules, component_module = modulemanager.get_modules_for_host(host); + + if component_module then + modules:add(component_module); + end if modules:contains("proxy65") then local proxy65_target = configmanager.get(host, "proxy65_address") or host; -- cgit v1.2.3