From d53bc169861815ce7cffac431f76304c995bb4fa Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sat, 19 Sep 2009 21:21:33 -0700 Subject: Adding version information to the catalog for compat We need to be able to do compatibility testing, and this allows us to do so. Signed-off-by: Luke Kanies --- lib/puppet/parser/compiler.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/compiler.rb b/lib/puppet/parser/compiler.rb index 2eb9438d9..521bf1cb5 100644 --- a/lib/puppet/parser/compiler.rb +++ b/lib/puppet/parser/compiler.rb @@ -422,6 +422,10 @@ class Puppet::Parser::Compiler node.parameters.each do |param, value| @topscope.setvar(param, value) end + + # These might be nil. + catalog.client_version = node.parameters["clientversion"] + catalog.server_version = node.parameters["serverversion"] end # Return an array of all of the unevaluated resources. These will be definitions, -- cgit