summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/node/exec.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-17 00:23:59 -0500
committerLuke Kanies <luke@madstop.com>2008-03-17 00:23:59 -0500
commit4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83 (patch)
tree734df466c8f1021755dc6e833fe6bc04739a400f /lib/puppet/indirector/node/exec.rb
parentab720489b491b00be2a0340f0b3aa4e186089281 (diff)
parentbba0b43a594273b82721b6e272aa5d95ab4e89f1 (diff)
downloadpuppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.tar.gz
puppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.tar.xz
puppet-4e76626dcad80bc5bb50f2c4ada21e6d3f4bbd83.zip
Merge branch '0.24.x' of ssh://reductivelabs.com/opt/rl/git/puppet into 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.