diff --git a/extra/syslog.rb b/extra/syslog.rb index 0efe9073d..faff8171f 100755 --- a/extra/syslog.rb +++ b/extra/syslog.rb @@ -107,7 +107,7 @@ def aruba(log, index, **opts) def handle_log(log, ipaddr) log = log.to_s.split ' ' index, vendor = MSG.find do |key, value| - index = log.find_index { |e| e.match? value } + index = log.find_index { |e| e.match value } break index, key if index end rest send(vendor, log, index, ip: ipaddr, name: getname(ipaddr), model: vendor.to_s) if index