diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-11 17:41:19 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-11 17:41:19 -0600 |
commit | 5ebaa8953155d091ed5b5c68c3862c9f695f03c0 (patch) | |
tree | b3d497a3dd746f5b918c463d3a9d4e412a8549a7 /lib/puppet/parser/compile.rb | |
parent | e247b56d9941b4a636d3a3d9935d6b9cd9b199ea (diff) | |
download | puppet-5ebaa8953155d091ed5b5c68c3862c9f695f03c0.tar.gz puppet-5ebaa8953155d091ed5b5c68c3862c9f695f03c0.tar.xz puppet-5ebaa8953155d091ed5b5c68c3862c9f695f03c0.zip |
Refactoring the interface between the Compile class
and the AST::Node class to match that to
the definitions and AST classes.
Diffstat (limited to 'lib/puppet/parser/compile.rb')
-rw-r--r-- | lib/puppet/parser/compile.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/compile.rb b/lib/puppet/parser/compile.rb index f68796843..2415fd5e8 100644 --- a/lib/puppet/parser/compile.rb +++ b/lib/puppet/parser/compile.rb @@ -232,9 +232,7 @@ class Puppet::Parser::Compile # 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) - add_resource(topscope, resource) - @catalog.tag(astnode.classname) + resource = astnode.evaluate(topscope) resource.evaluate |