From 9a2812c80438cd7f8d3a683a1da5eb6acc3c2e06 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 19 Aug 2020 08:55:28 -0700 Subject: Add missing require for windows network plugin 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 --- lib/ohai/plugins/windows/network.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1