summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/dcnos.rb
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-04-05 14:23:20 +0200
committerWild Kat <wk@futureinquestion.net>2018-04-05 14:23:20 +0200
commitb2fcf887b3ea7e85e916ec7265a494a6efbf8fa7 (patch)
treee62b791394ffb235631750dbbeacf90bc933a808 /lib/oxidized/model/dcnos.rb
parent37c8c80844b5c3c629e9b51220aa35f3d1cfb849 (diff)
strip uptime info from show version
Diffstat (limited to 'lib/oxidized/model/dcnos.rb')
-rw-r--r--lib/oxidized/model/dcnos.rb1
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