22 |
22 |
23 local function load_enabled_hosts(config) |
23 local function load_enabled_hosts(config) |
24 local defined_hosts = config or configmanager.getconfig(); |
24 local defined_hosts = config or configmanager.getconfig(); |
25 |
25 |
26 for host, host_config in pairs(defined_hosts) do |
26 for host, host_config in pairs(defined_hosts) do |
27 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then |
27 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) and not host_config.core.component_module then |
28 activate(host, host_config); |
28 activate(host, host_config); |
29 end |
29 end |
30 end |
30 end |
31 eventmanager.fire_event("hosts-activated", defined_hosts); |
31 eventmanager.fire_event("hosts-activated", defined_hosts); |
32 hosts_loaded_once = true; |
32 hosts_loaded_once = true; |