# File lib/puppet/configurer/fact_handler.rb, line 13
13:   def find_facts
14:     # This works because puppet agent configures Facts to use 'facter' for
15:     # finding facts and the 'rest' terminus for caching them.  Thus, we'll
16:     # compile them and then "cache" them on the server.
17:     begin
18:       reload_facter
19:       Puppet::Node::Facts.find(Puppet[:certname])
20:     rescue SystemExit,NoMemoryError
21:       raise
22:     rescue Exception => detail
23:       puts detail.backtrace if Puppet[:trace]
24:       raise Puppet::Error, "Could not retrieve local facts: #{detail}"
25:     end
26:   end