Module: Puppet::Node::Facts::NodeExpirer

Defined in:
lib/puppet/node/facts.rb

Overview

We want to expire any cached nodes if the facts are saved.

Instance Method Summary collapse

Instance Method Details

#save(instance, key = nil, options = {}) ⇒ Object



19
20
21
22
# File 'lib/puppet/node/facts.rb', line 19

def save(instance, key = nil, options={})
  Puppet::Node.indirection.expire(instance.name, options)
  super
end