Software /
code /
prosody-modules
Comparison
mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua @ 2781:fe5bb7b13a59
mod_s2s_reload_newcomponent: Fix to use imported configmanager instead of global
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 03 Oct 2017 22:37:15 +0100 |
parent | 214:7487f8b47662 |
comparison
equal
deleted
inserted
replaced
2780:d93a73282a93 | 2781:fe5bb7b13a59 |
---|---|
7 local defined_hosts = config.getconfig(); | 7 local defined_hosts = config.getconfig(); |
8 | 8 |
9 for host in pairs(defined_hosts) do | 9 for host in pairs(defined_hosts) do |
10 if (not hosts[host] and host ~= "*") then | 10 if (not hosts[host] and host ~= "*") then |
11 module:log ("debug", "loading new component %s", host); | 11 module:log ("debug", "loading new component %s", host); |
12 modulemanager.load(host, configmanager.get(host, "core", "component_module")); | 12 modulemanager.load(host, config.get(host, "core", "component_module")); |
13 end | 13 end |
14 end; | 14 end; |
15 | 15 |
16 return; | 16 return; |
17 end | 17 end |