From effc6b8e292992d2df1d321b5d5bf68208db6b24 Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Mon, 27 Sep 2010 15:23:47 -0700 Subject: Fixes #4852 - error messages involving Whits now mention Classes instead Whits are inserted into the dependency graph in the place where an empty class is being required. Unfortunately, when such a class is involved in a loop, the error message shows the cycle as involving Whit[Classname]. This patch changes it to say Class[Classname], which is much easier to understand. It also fixes puppetdoc from generating documentation on the Whit type. --- lib/puppet/reference/type.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet/reference') diff --git a/lib/puppet/reference/type.rb b/lib/puppet/reference/type.rb index 847bbc223..b423387e9 100644 --- a/lib/puppet/reference/type.rb +++ b/lib/puppet/reference/type.rb @@ -5,6 +5,7 @@ type = Puppet::Util::Reference.newreference :type, :doc => "All Puppet resource Puppet::Type.eachtype { |type| next if type.name == :puppet next if type.name == :component + next if type.name == :whit types[type.name] = type } -- cgit