# HG changeset patch # User Kim Alvefur # Date 1452557637 -3600 # Node ID 6946c3d5645f83a9b766e56f8e06bcaf66cd8e82 # Parent f094683ae6eb74ab940c0e827c57abd529707180 prosodyctl check: Fix traceback if the global modules_enabled is unset diff -r f094683ae6eb -r 6946c3d5645f prosodyctl --- 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