summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/compiler.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-09-19 21:21:33 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-09-22 09:27:22 +1000
commitd53bc169861815ce7cffac431f76304c995bb4fa (patch)
treee87c0b2ff373a68cbc61115e8327af41edf10dde /lib/puppet/parser/compiler.rb
parent5f2558939bbf4ce180aa5d7c0d534e974bd01a4f (diff)
downloadpuppet-d53bc169861815ce7cffac431f76304c995bb4fa.tar.gz
puppet-d53bc169861815ce7cffac431f76304c995bb4fa.tar.xz
puppet-d53bc169861815ce7cffac431f76304c995bb4fa.zip
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 <luke@madstop.com>
Diffstat (limited to 'lib/puppet/parser/compiler.rb')
-rw-r--r--lib/puppet/parser/compiler.rb4
1 files changed, 4 insertions, 0 deletions
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,