Software /
code /
prosody
Diff
prosodyctl @ 7080:6946c3d5645f
prosodyctl check: Fix traceback if the global modules_enabled is unset
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Jan 2016 01:13:57 +0100 |
parent | 7065:4fc3c008976f |
child | 7082:8b590fc77d91 |
line wrap: on
line diff
--- a/prosodyctl Mon Jan 11 15:35:51 2016 +0100 +++ b/prosodyctl Tue Jan 12 01:13:57 2016 +0100 @@ -1080,8 +1080,8 @@ 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