aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/hostmanager.lua1
-rw-r--r--core/modulemanager.lua5
-rw-r--r--core/storagemanager.lua4
3 files changed, 4 insertions, 6 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 3c90dbb9..cee4a1d6 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -75,6 +75,7 @@ function activate(host, host_config)
events = events_new();
dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen();
send = host_send;
+ modules = {};
};
if not host_config.core.component_module then -- host
host_session.type = "local";
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 9c5e4a4a..b0d54caa 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -119,10 +119,7 @@ local function do_load_module(host, module_name)
end
if not modulemap[host] then
- modulemap[host] = {};
- if host ~= "*" then
- hosts[host].modules = modulemap[host];
- end
+ modulemap[host] = hosts[host].modules;
end
if modulemap[host][module_name] then
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 1b76a394..18e2e7f9 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -33,12 +33,12 @@ local stores_available = multitable.new();
function initialize_host(host)
local host_session = hosts[host];
- host_session.events.add_handler("item-added/data-driver", function (event)
+ host_session.events.add_handler("item-added/storage-provider", function (event)
local item = event.item;
stores_available:set(host, item.name, item);
end);
- host_session.events.add_handler("item-removed/data-driver", function (event)
+ host_session.events.add_handler("item-removed/storage-provider", function (event)
local item = event.item;
stores_available:set(host, item.name, nil);
end);