# File lib/puppet/configurer/fact_handler.rb, line 52 52: def reload_facter 53: Facter.clear 54: 55: # Reload everything. 56: if Facter.respond_to? :loadfacts 57: Facter.loadfacts 58: elsif Facter.respond_to? :load 59: Facter.load 60: else 61: Puppet.warning "You should upgrade your version of Facter to at least 1.3.8" 62: end 63: 64: # This loads all existing facts and any new ones. We have to remove and 65: # reload because there's no way to unload specific facts. 66: Puppet::Node::Facts::Facter.load_fact_plugins() 67: end