From aba3d6522f83f86c4d04c864becee4e2bc31d95c Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 18 Jul 2006 14:00:33 +0000 Subject: Fixing bug in scope/interpreter where nodes found in ldap must have parent nodes. The problem was that the the scope was using the presence of a parent node to determine whether a node was found. Instead I added a flag in the arguments to "Scope#evaluate" to mark nodes as found. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1401 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/interpreter.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/puppet/parser/interpreter.rb') diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 7a595872e..012d7a82a 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -312,6 +312,10 @@ module Puppet args[:classes] += nodeclasses if nodeclasses args[:parentnode] = parent if parent + + if nodeclasses or parent + args[:searched] = true + end end begin -- cgit