lib/facter/resolvers/windows/dmi_computersystem_resolver.rb in facter-4.0.46 vs lib/facter/resolvers/windows/dmi_computersystem_resolver.rb in facter-4.0.47
- old
+ new
@@ -15,10 +15,10 @@
def post_resolve(fact_name)
@fact_list.fetch(fact_name) { read_fact_from_computer_system(fact_name) }
end
def read_fact_from_computer_system(fact_name)
- win = Win32Ole.new
+ win = Facter::Util::Windows::Win32Ole.new
computersystem = win.return_first('SELECT Name,UUID FROM Win32_ComputerSystemProduct')
unless computersystem
@log.debug 'WMI query returned no results for Win32_ComputerSystemProduct with values Name and UUID.'
return
end