Changed to match the signature of the method being overridden. This will allow code to call Facts.indirection.save() without a key.
Signed-off-by: Paul Berry <[email protected]> --- Local-branch: maint/next/remove_save_delegation lib/puppet/node/facts.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/puppet/node/facts.rb b/lib/puppet/node/facts.rb index fd99adc..451813f 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 -- 1.7.2 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
