Software /
code /
prosody
Changeset
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 |
parents | 7079:f094683ae6eb |
children | 7081:a22d6a46d2ed |
files | prosodyctl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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