From 6ba122f62bf22c955a6923604a46a8ab22d8770b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 18 Oct 2009 17:06:28 -0700 Subject: Fixing #2735 - node classes are immed. added to classlist This commit adds any external node classes to the classlist at compiler initialization, so that at least those classes will be isolated from any ordering issues encountered when testing the contents of the class list during compilation. Signed-off-by: Luke Kanies --- lib/puppet/parser/compiler.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/puppet') diff --git a/lib/puppet/parser/compiler.rb b/lib/puppet/parser/compiler.rb index 521bf1cb5..77b0bb98e 100644 --- a/lib/puppet/parser/compiler.rb +++ b/lib/puppet/parser/compiler.rb @@ -415,6 +415,9 @@ class Puppet::Parser::Compiler # local resource array to maintain resource ordering @resources = [] + + # Make sure any external node classes are in our class list + @catalog.add_class(*@node.classes) end # Set the node's parameters into the top-scope as variables. -- cgit