lib/ohai/plugins/openbsd/network.rb in ohai-15.1.5 vs lib/ohai/plugins/openbsd/network.rb in ohai-15.2.5

- old
+ new

@@ -87,9 +87,10 @@ so = shell_out("arp -an") so.stdout.lines do |line| if line =~ /\((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\) at ([a-fA-F0-9\:]+) on ([0-9a-zA-Z\.\:\-]+)/ next unless iface[$3] # this should never happen + iface[$3][:arp] ||= Mash.new iface[$3][:arp][$1] = $2.downcase end end