From 796ba5c4ccec117bbc4dec69c670337e70b48634 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 18 Aug 2009 15:58:38 -0700 Subject: Fixing #1544 - plugins in modules now works again We had to fix the fileserving plumbing to use the request environment instead of trying to use the node environment. This was apparently never fixed after we added the environment to the URI in REST calls. There's still a bit of refactoring left to clean up the APIs used in some of this code. Signed-off-by: Luke Kanies --- lib/puppet/node/environment.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet/node') diff --git a/lib/puppet/node/environment.rb b/lib/puppet/node/environment.rb index c053e0d5f..323f2793a 100644 --- a/lib/puppet/node/environment.rb +++ b/lib/puppet/node/environment.rb @@ -71,6 +71,7 @@ class Puppet::Node::Environment cached_attr(:modules, :ttl => Puppet[:filetimeout]) do result = [] Puppet::Module.each_module(modulepath) do |mod| + mod.environment = self result << mod end result -- cgit