From 48a297e80c605ac4b47a03e25fd1ccc33f4ba4c5 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 13 Sep 2012 00:32:12 +0500 Subject: hostmanager, modulemanager: Ensure hosts[*].modules always exists. --- core/modulemanager.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/modulemanager.lua') 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 -- cgit v1.2.3