diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-04-08 00:35:47 +0200 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-04-08 00:35:47 +0200 |
commit | a4bd3e5ca5ab747fdbf2bd876d7be7a947e74f46 (patch) | |
tree | 58d52f9b948ee41efad470b6a053fcd6b15241d7 /lib/oxidized/model/asa.rb | |
parent | 5c8916a364cf999a420ebbd5e022ec8cda78a980 (diff) |
eliminate inverse methods from models
Diffstat (limited to 'lib/oxidized/model/asa.rb')
-rw-r--r-- | lib/oxidized/model/asa.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index 9df4206..bea0705 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -27,7 +27,7 @@ class ASA < Oxidized::Model cmd 'show version' do |cfg| # avoid commits due to uptime / ixo-router01 up 2 mins 28 secs / ixo-router01 up 1 days 2 hours - cfg = cfg.each_line.select { |line| not line.match /(\s+up\s+\d+\s+)|(.*days.*)/ } + cfg = cfg.each_line.reject { |line| line.match /(\s+up\s+\d+\s+)|(.*days.*)/ } cfg = cfg.join comment cfg end |