diff options
author | Luke Kanies <luke@madstop.com> | 2007-09-07 12:10:59 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-09-07 12:10:59 -0500 |
commit | 9af79f117221d93f0d13a2c5ea3e886c6a9d939e (patch) | |
tree | 1470b73877b2d46c16f0e6ff4b15d4088b6a636f /lib/puppet/parser/compile.rb | |
parent | 50874b2f1801b6ad2884803e98bbd220ef4af1bd (diff) | |
download | puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.tar.gz puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.tar.xz puppet-9af79f117221d93f0d13a2c5ea3e886c6a9d939e.zip |
Fixing some failed tests. Mostly cleanup. Next is to make all of the user tests pass again, dammit.
Diffstat (limited to 'lib/puppet/parser/compile.rb')
-rw-r--r-- | lib/puppet/parser/compile.rb | 6 |
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. |