summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-19 08:55:28 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-19 08:55:28 -0700
commit9a2812c80438cd7f8d3a683a1da5eb6acc3c2e06 (patch)
tree30b9d0909d025c4be953bf4bf5e32a4126892b83
parenta61bba8887723c7c7dc7e0211a31af9dc6e84b2b (diff)
downloadohai-network.tar.gz
Add missing require for windows network pluginnetwork
This was missed since the windows network plugin just mocks out the IP data. I'll see what I can do to make these more real world tests in a followup PR Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/windows/network.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/windows/network.rb b/lib/ohai/plugins/windows/network.rb
index 2b8fdd62..a7fc9071 100644
--- a/lib/ohai/plugins/windows/network.rb
+++ b/lib/ohai/plugins/windows/network.rb
@@ -117,7 +117,7 @@ Ohai.plugin(:Network) do
end
collect_data(:windows) do
-
+ require "ipaddress" unless defined?(IPAddress)
require "wmi-lite/wmi" unless defined?(WmiLite::Wmi)
iface = Mash.new