diff options
Diffstat (limited to 'lib/puppet/parser/scope.rb')
-rw-r--r-- | lib/puppet/parser/scope.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 317776055..8d5937217 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -349,7 +349,7 @@ module Puppet::Parser # If they've provided a name or a parent, we assume they're looking # for nodes. - if hash.include? :parentnode + if hash[:searched] # Specifying a parent node takes precedence, because it is assumed # that this node was found in a remote repository like ldap. gennode(hash) |