summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/compile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/compile.rb')
-rw-r--r--lib/puppet/parser/compile.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/parser/compile.rb b/lib/puppet/parser/compile.rb
index cc9938e50..6aeebeaae 100644
--- a/lib/puppet/parser/compile.rb
+++ b/lib/puppet/parser/compile.rb
@@ -246,7 +246,11 @@ class Puppet::Parser::Compile
raise Puppet::ParseError, "Could not find default node or by name with '%s'" % node.names.join(", ")
end
- astnode.safeevaluate :scope => topscope
+ # Create a resource to model this node, and then add it to the list
+ # of resources.
+ resource = Puppet::Parser::Resource.new(:type => "node", :title => astnode.classname, :scope => topscope, :source => topscope.source)
+ store_resource(topscope, resource)
+ @configuration.tag(astnode.classname)
end
# Evaluate our collections and return true if anything returned an object.