util/prosodyctl/check.lua
branch0.12
changeset 12418 a93e65784f2c
parent 12394 71b5c9b8b07a
child 12420 19fd28239e73
equal deleted inserted replaced
12397:6966026262f4 12418:a93e65784f2c
   665 					for _, disco_item in ipairs(host_options.disco_items or {}) do
   665 					for _, disco_item in ipairs(host_options.disco_items or {}) do
   666 						referenced_components:add(disco_item[1]);
   666 						referenced_components:add(disco_item[1]);
   667 					end
   667 					end
   668 				end
   668 				end
   669 			end
   669 			end
   670 			for host, host_config in enabled_hosts() do
   670 			for host, host_config in it.filter(skip_bare_jid_hosts, enabled_hosts()) do
   671 				local is_component = not not host_config.component_module;
   671 				local is_component = not not host_config.component_module;
   672 				if is_component then
   672 				if is_component then
   673 					local parent_domain = host:match("^[^.]+%.(.+)$");
   673 					local parent_domain = host:match("^[^.]+%.(.+)$");
   674 					local is_orphan = not (enabled_hosts_set:contains(parent_domain) or referenced_components:contains(host));
   674 					local is_orphan = not (enabled_hosts_set:contains(parent_domain) or referenced_components:contains(host));
   675 					if is_orphan then
   675 					if is_orphan then