diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-04-05 14:23:20 +0200 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-04-05 14:23:20 +0200 |
commit | b2fcf887b3ea7e85e916ec7265a494a6efbf8fa7 (patch) | |
tree | e62b791394ffb235631750dbbeacf90bc933a808 /lib/oxidized/model | |
parent | 37c8c80844b5c3c629e9b51220aa35f3d1cfb849 (diff) |
strip uptime info from show version
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/dcnos.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/dcnos.rb b/lib/oxidized/model/dcnos.rb index f53bc0d..ec0c7f6 100644 --- a/lib/oxidized/model/dcnos.rb +++ b/lib/oxidized/model/dcnos.rb @@ -9,6 +9,7 @@ class DCNOS < Oxidized::Model comment '! ' cmd 'show version' do |cfg| + cfg = cfg.gsub! /^(Uptime is ).*/, '' comment cfg end |