aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-12 01:13:57 +0100
committerKim Alvefur <zash@zash.se>2016-01-12 01:13:57 +0100
commit3a457689812fcf760832db7ebee7158787b7fbbb (patch)
treed603fb3023d44e15abdcb282b6f572581ace0e1a
parent0368fd8ee5b0dd137e44b2000a7fb7bfe24f7985 (diff)
downloadprosody-3a457689812fcf760832db7ebee7158787b7fbbb.tar.gz
prosody-3a457689812fcf760832db7ebee7158787b7fbbb.zip
prosodyctl check: Fix traceback if the global modules_enabled is unset
-rwxr-xr-xprosodyctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/prosodyctl b/prosodyctl
index 0c80aca7..e08c9dd2 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -1080,8 +1080,8 @@ function commands.check(arg)
target_hosts:remove("localhost");
end
- local modules = set.new(it.to_array(it.values(host_options.modules_enabled)))
- + set.new(it.to_array(it.values(config.get("*", "modules_enabled"))))
+ local modules = set.new(it.to_array(it.values(host_options.modules_enabled or {})))
+ + set.new(it.to_array(it.values(config.get("*", "modules_enabled") or {})))
+ set.new({ config.get(host, "component_module") });
if modules:contains("proxy65") then