summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/interpreter.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-01-23 18:49:26 -0600
committerLuke Kanies <luke@madstop.com>2009-02-06 18:08:42 -0600
commitd53ad3181d3f5953b00512d7793945d238d1879f (patch)
treef23104eada8d7baa2b82238124755ca90ebd8a78 /lib/puppet/parser/interpreter.rb
parentf38277fb7d044394665db369892c01162b866863 (diff)
downloadpuppet-d53ad3181d3f5953b00512d7793945d238d1879f.tar.gz
puppet-d53ad3181d3f5953b00512d7793945d238d1879f.tar.xz
puppet-d53ad3181d3f5953b00512d7793945d238d1879f.zip
Converting the catalog as needed
Converting to a Resource catalog for transmission, then converting to a RAL catalog on the client. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r--lib/puppet/parser/interpreter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb
index 423c34a4e..c728b54a2 100644
--- a/lib/puppet/parser/interpreter.rb
+++ b/lib/puppet/parser/interpreter.rb
@@ -26,10 +26,10 @@ class Puppet::Parser::Interpreter
def compile(node)
raise Puppet::ParseError, "Could not parse configuration; cannot compile on node %s" % node.name unless env_parser = parser(node.environment)
begin
- return Puppet::Parser::Compiler.new(node, env_parser).compile
+ return Puppet::Parser::Compiler.new(node, env_parser).compile.to_resource
rescue => detail
- puts detail.backtrace if Puppet[:trace]
- raise Puppet::Error, detail.to_s + " on node %s" % node.name
+ puts detail.backtrace if Puppet[:trace]
+ raise Puppet::Error, detail.to_s + " on node %s" % node.name
end
end