diff options
author | Tim Smith <tsmith@chef.io> | 2017-09-19 16:12:47 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-09-19 16:12:47 -0700 |
commit | 8b3dbf84478f03d1fdfa88a5987e9cb4ddeddeca (patch) | |
tree | 12a4fb26d39eda596595ce29d2415cda3754a7ad | |
parent | 66ce52b1cc5ee73b49243d9184b725c84002129c (diff) | |
download | ohai-8b3dbf84478f03d1fdfa88a5987e9cb4ddeddeca.tar.gz |
Make sure we require wmi/lite in the ec2 pluginec2_missing_require
This gets required in other places, but it was meant to be uncommented.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/ec2.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/ec2.rb b/lib/ohai/plugins/ec2.rb index 2dd0fd63..1a3598d8 100644 --- a/lib/ohai/plugins/ec2.rb +++ b/lib/ohai/plugins/ec2.rb @@ -70,7 +70,7 @@ Ohai.plugin(:EC2) do # @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") |