Diff

core/modulemanager.lua @ 5123:7c5c86fa552e

hostmanager, modulemanager: Ensure hosts[*].modules always exists.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 13 Sep 2012 00:32:12 +0500
parent 5021:85b2689dbcfe
child 5192:3fc3a3072cc2
line wrap: on
line diff
--- a/core/modulemanager.lua	Wed Sep 12 23:46:10 2012 +0500
+++ b/core/modulemanager.lua	Thu Sep 13 00:32:12 2012 +0500
@@ -119,10 +119,7 @@
 	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