diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-12 01:13:57 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-12 01:13:57 +0100 |
commit | 5cf7f85a081fcf56c44bca7bc5738cf3af25d630 (patch) | |
tree | d603fb3023d44e15abdcb282b6f572581ace0e1a | |
parent | 3c9b6a4a8d98570eafdfcf388fd1f51fe97a5425 (diff) | |
download | prosody-5cf7f85a081fcf56c44bca7bc5738cf3af25d630.tar.gz prosody-5cf7f85a081fcf56c44bca7bc5738cf3af25d630.zip |
prosodyctl check: Fix traceback if the global modules_enabled is unset
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |