diff options
Diffstat (limited to 'lib/ohai/plugins/windows/network.rb')
-rw-r--r-- | lib/ohai/plugins/windows/network.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ohai/plugins/windows/network.rb b/lib/ohai/plugins/windows/network.rb index 0720672a..d1454805 100644 --- a/lib/ohai/plugins/windows/network.rb +++ b/lib/ohai/plugins/windows/network.rb @@ -16,17 +16,18 @@ # limitations under the License. # -require 'ruby-wmi' - -Ohai.plugin do - provides "network" +Ohai.plugin(:Network) do + provides "network", "network/interfaces" + provides "counters/network", "counters/network/interfaces" def encaps_lookup(encap) return "Ethernet" if encap.eql?("Ethernet 802.3") encap end - collect_data do + collect_data(:windows) do + require 'ruby-wmi' + iface = Mash.new iface_config = Mash.new iface_instance = Mash.new |