lib/ohai/plugins/ec2.rb in ohai-13.4.0 vs lib/ohai/plugins/ec2.rb in ohai-13.5.0

- old
+ new

@@ -68,10 +68,10 @@ # this is actually the same value we're looking at in has_ec2_xen_uuid? on # linux hosts # @return [Boolean] do we have a Xen Identifying Number or not? def has_ec2_identifying_number? if RUBY_PLATFORM =~ /mswin|mingw32|windows/ - # require "wmi-lite/wmi" + require "wmi-lite/wmi" wmi = WmiLite::Wmi.new if wmi.first_of("Win32_ComputerSystemProduct")["identifyingnumber"] =~ /^ec2/ Ohai::Log.debug("Plugin EC2: has_ec2_identifying_number? == true") return true end