lib/facter/resolvers/windows/kernel.rb in facter-4.4.3 vs lib/facter/resolvers/windows/kernel.rb in facter-4.5.0

- old
+ new

@@ -28,9 +28,11 @@ result = { major: ver[:dwMajorVersion], minor: ver[:dwMinorVersion], build: ver[:dwBuildNumber] } build_facts_list(result) @fact_list[fact_name] + rescue LoadError => e + @log.debug("Could not get OS version information: #{e}") end def build_facts_list(result) @fact_list[:kernelversion] = "#{result[:major]}.#{result[:minor]}.#{result[:build]}" @fact_list[:kernelmajorversion] = "#{result[:major]}.#{result[:minor]}"