Skip to content

Commit

Permalink
String#match? is ruby2.4 feature
Browse files Browse the repository at this point in the history
We currently support ruby2.3 or newer
  • Loading branch information
ytti committed Oct 19, 2019
1 parent de980e2 commit 836c03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/syslog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 836c03e

Please sign in to comment.