modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae).

Sun, 18 Oct 2009 01:19:03 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 18 Oct 2009 01:19:03 +0500
changeset 1988
a6e7fe0fc3dd
parent 1987
94ecd3e7be87
child 1989
97c3236cc4ac

modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae).

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- a/core/modulemanager.lua	Sat Oct 17 23:50:09 2009 +0500
+++ b/core/modulemanager.lua	Sun Oct 18 01:19:03 2009 +0500
@@ -65,9 +65,11 @@
 	end
 
 	-- Load auto-loaded modules for this host
-	for _, module in ipairs(autoload_modules) do
-		if not disabled_set[module] then
-			load(host, module);
+	if hosts[host].type == "local" then
+		for _, module in ipairs(autoload_modules) do
+			if not disabled_set[module] then
+				load(host, module);
+			end
 		end
 	end
 

mercurial