lib/ohai/plugins/kernel.rb in ohai-15.0.35 vs lib/ohai/plugins/kernel.rb in ohai-15.1.3
- old
+ new
@@ -245,10 +245,10 @@
kernel[:modules] = modules
end
collect_data(:windows) do
- require "win32ole"
+ require "win32ole" unless defined?(WIN32OLE)
require "wmi-lite/wmi"
WIN32OLE.codepage = WIN32OLE::CP_UTF8
wmi = WmiLite::Wmi.new