diff options
Diffstat (limited to 'lib/puppet/parser/scope.rb')
-rw-r--r-- | lib/puppet/parser/scope.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 35137fda7..27de8ffd8 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -297,13 +297,18 @@ module Puppet::Parser raise Puppet::DevError, "Node names must be provided to gennode" facts = hash[:facts] classes = hash[:classes] - parent = hash[:parent] + parent = hash[:parentnode] name = names.shift arghash = { :type => name, :code => AST::ASTArray.new(:pin => "[]") } + #Puppet.notice "hash is %s" % + # hash.inspect + Puppet.notice "Classes are %s, parent is %s" % + [classes.inspect, parent.inspect] + if parent arghash[:parentclass] = parent end |