summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/node/exec.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-20 11:55:42 -0500
committerLuke Kanies <luke@madstop.com>2008-03-20 11:55:42 -0500
commite1907798425a7b163ac1b831b0cf11e88985815e (patch)
tree281191621b07b939ad724981d110b9a85463b5e1 /lib/puppet/indirector/node/exec.rb
parent9f8bb7e42aeea4670d9292f935529f8db5d57bc5 (diff)
parente00065a8e63a7222eacbc7e8aaa925e967fd5c60 (diff)
downloadpuppet-e1907798425a7b163ac1b831b0cf11e88985815e.tar.gz
puppet-e1907798425a7b163ac1b831b0cf11e88985815e.tar.xz
puppet-e1907798425a7b163ac1b831b0cf11e88985815e.zip
Merge branch '0.24.x'
Diffstat (limited to 'lib/puppet/indirector/node/exec.rb')
-rw-r--r--lib/puppet/indirector/node/exec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/indirector/node/exec.rb b/lib/puppet/indirector/node/exec.rb
index 71f4fa8e1..dcfc625b2 100644
--- a/lib/puppet/indirector/node/exec.rb
+++ b/lib/puppet/indirector/node/exec.rb
@@ -24,6 +24,13 @@ class Puppet::Node::Exec < Puppet::Indirector::Exec
return create_node(name, result)
end
+ # Use the version of the facts, since we assume that's the main thing
+ # that changes. If someone wants their own way of defining version,
+ # they can easily provide their own, um, version of this class.
+ def version(name)
+ Puppet::Node::Facts.version(name)
+ end
+
private
# Turn our outputted objects into a Puppet::Node instance.