summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-30 11:59:45 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-30 12:03:57 -0800
commit7de6af87109062a4c0b038f2f2d93191e6a93e4f (patch)
tree5ea1d4b1164296ca870516efff37ddd0316733ec
parentbeb85d65e4cced7691163add392f53ec58cb1a3d (diff)
downloadpuppet-7de6af87109062a4c0b038f2f2d93191e6a93e4f.tar.gz
puppet-7de6af87109062a4c0b038f2f2d93191e6a93e4f.tar.xz
puppet-7de6af87109062a4c0b038f2f2d93191e6a93e4f.zip
Maint: Add a default value for key in Facts::NodeExpirer#save
Changed to match the signature of the method being overridden. This will allow code to call Facts.indirection.save() without a key.
-rwxr-xr-xlib/puppet/node/facts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/node/facts.rb b/lib/puppet/node/facts.rb
index fd99adc3b..451813f7d 100755
--- a/lib/puppet/node/facts.rb
+++ b/lib/puppet/node/facts.rb
@@ -15,7 +15,7 @@ class Puppet::Node::Facts
# We want to expire any cached nodes if the facts are saved.
module NodeExpirer
- def save(instance, key)
+ def save(instance, key = nil)
Puppet::Node.indirection.expire(instance.name)
super
end