From 770a8ea2beb58cff52f5e532a777d7046aa2efb0 Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Sat, 24 Apr 2010 13:47:00 +0200 Subject: Fix #3665 - main class shouldn't be a subscope of itself During the refactoring of AST hostclass/node to non AST objects, we lost the fact that the main class already comes with a scope (ie the top one), so when we evaluate its code we shouldn't create a subscope for it. Signed-off-by: Brice Figureau --- lib/puppet/resource/type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet') diff --git a/lib/puppet/resource/type.rb b/lib/puppet/resource/type.rb index ab57f962f..825cce39e 100644 --- a/lib/puppet/resource/type.rb +++ b/lib/puppet/resource/type.rb @@ -69,7 +69,7 @@ class Puppet::Resource::Type scope = tmp end - scope = subscope(scope, resource) + scope = subscope(scope, resource) unless resource.title == :main set_resource_parameters(resource, scope) -- cgit