lib/facter/resolvers/augeas.rb in facter-4.4.1 vs lib/facter/resolvers/augeas.rb in facter-4.4.2

- old
+ new

@@ -15,9 +15,12 @@ def read_augeas_version(fact_name) @fact_list[:augeas_version] = read_augeas_from_cli @fact_list[:augeas_version] ||= read_augeas_from_gem @fact_list[fact_name] + rescue LoadError => e + log.debug("Resolving fact #{fact_name}, but got #{e} at #{e.backtrace[0]}") + @fact_list[:augeas_version] = nil end def read_augeas_from_cli command = if File.readable?('/opt/puppetlabs/puppet/bin/augparse') '/opt/puppetlabs/puppet/bin/augparse'