From 42ff0d0de8e1ab0d7fc77abc378765fb509afbd7 Mon Sep 17 00:00:00 2001 From: hana-da Date: Tue, 7 Jan 2020 19:26:02 +0900 Subject: [PATCH] Fix TypeError on suppress_veth plugin --- lib/gri/plugin/suppress_veth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gri/plugin/suppress_veth.rb b/lib/gri/plugin/suppress_veth.rb index 158ae19..07a72ea 100644 --- a/lib/gri/plugin/suppress_veth.rb +++ b/lib/gri/plugin/suppress_veth.rb @@ -5,8 +5,8 @@ :exclude? => proc {|record| record['ifOperStatus'].to_i != 1 or record['ifSpeed'].to_i == 0 or - (Integer(record['ifInOctets']) == 0 and - Integer(record['ifOutOctets']) == 0) or + (record['ifInOctets'].to_i == 0 and + record['ifOutOctets'].to_i == 0) or /(^(|Loopback|Null|Async|lo)\d+)|(^veth\w)|cef layer|atm subif/ === record['ifDescr'] },