summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/windows/network.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/windows/network.rb')
-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 9a80ec88..ddfdc74d 100644
--- a/lib/ohai/plugins/windows/network.rb
+++ b/lib/ohai/plugins/windows/network.rb
@@ -87,7 +87,7 @@ Ohai.plugin(:Network) do
end
end
- iface_instance.keys.each do |i|
+ iface_instance.each_key do |i|
if iface_instance[i][:name] && iface_config[i] && iface_config[i][:ip_address][0]
cint = sprintf("0x%x", (iface_instance[i][:interface_index] || iface_instance[i][:index]) ).downcase
iface[cint] = Mash.new