diff options
Diffstat (limited to 'lib/ohai/plugins/gce.rb')
-rw-r--r-- | lib/ohai/plugins/gce.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/gce.rb b/lib/ohai/plugins/gce.rb index f8c30b32..db336dfe 100644 --- a/lib/ohai/plugins/gce.rb +++ b/lib/ohai/plugins/gce.rb @@ -49,7 +49,7 @@ Ohai.plugin(:GCE) do # @return [Boolean] Are the manufacturer and model Google? def has_gce_system_info? if RUBY_PLATFORM.match?(/mswin|mingw32|windows/) - require "wmi-lite/wmi" + require "wmi-lite/wmi" unless defined?(WmiLite::Wmi) wmi = WmiLite::Wmi.new computer_system = wmi.first_of("Win32_ComputerSystem") if computer_system["Manufacturer"] =~ /^Google/ && computer_system["Model"] =~ /^Google/ |