diff util/prosodyctl/check.lua @ 14041:9f84b26224e1 13.0

prosodyctl check features: Use modulemanager to calculate modules that will actually be loaded This will respect options such as modules_disabled, as well as inherited module calculations for components.
author Matthew Wild <mwild1@gmail.com>
date Mon, 12 Jan 2026 18:02:17 +0000
parents 8078eebf5601
children 2afb278326ce
line wrap: on
line diff
--- a/util/prosodyctl/check.lua	Mon Jan 12 17:46:32 2026 +0000
+++ b/util/prosodyctl/check.lua	Mon Jan 12 18:02:17 2026 +0000
@@ -1690,7 +1690,7 @@
 				for _, component_module in ipairs({ suggested, alternate, ... }) do
 					found = host_components[component_module][1];
 					if found then
-						local enabled_component_modules = api(found):get_option_inherited_set("modules_enabled");
+						local enabled_component_modules = modulemanager.get_modules_for_host(found);
 						local recommended_mods = recommended_component_modules[component_module];
 						if recommended_mods then
 							local missing_mods = {};