From cfb74a4b4f75f4a5f3b5ea1b88477372715f9f48 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 18 Oct 2009 01:19:03 +0500 Subject: [PATCH] modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). --- core/modulemanager.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 7c30cb37..f703889f 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -65,9 +65,11 @@ function load_modules_for_host(host) 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 -- 2.30.2