From 927dff41df8f1c236c54eaee9fa1db7a3efaf02a Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 7 Jan 2008 12:19:21 -0600 Subject: Fixing #971 -- classes can once again be included multiple times. --- lib/puppet/parser/compile.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/compile.rb b/lib/puppet/parser/compile.rb index fdd0cbcf2..c065e3f38 100644 --- a/lib/puppet/parser/compile.rb +++ b/lib/puppet/parser/compile.rb @@ -122,9 +122,12 @@ class Puppet::Parser::Compile classes.each do |name| # If we can find the class, then make a resource that will evaluate it. if klass = scope.findclass(name) + found << name and next if class_scope(klass) + # Create a resource to model this class, and then add it to the list # of resources. resource = Puppet::Parser::Resource.new(:type => "class", :title => klass.classname, :scope => scope, :source => scope.source) + store_resource(scope, resource) # If they've disabled lazy evaluation (which the :include function does), -- cgit