summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-06-14 22:17:42 +0200
committerGitHub <noreply@github.com>2018-06-14 22:17:42 +0200
commitca35b912d5bde6c32d550dccfada67ace972cf5f (patch)
tree41c18533394061ede51a584274ce93ecf340425d
parent38d5893b83d0a9cf798813d32e27233615e5fb56 (diff)
Scrub uptime in ciscosmb more carefully, closes #1398 (#1400)
Scrub uptime in ciscosmb more carefully, closes #1398
-rw-r--r--CHANGELOG.md2
-rw-r--r--lib/oxidized/model/ciscosmb.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0aa75da..19aa38e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
## Master
-* BUGFIX: model edgecos
+* BUGFIX: model edgecos, ciscosmb
## 0.24.0
diff --git a/lib/oxidized/model/ciscosmb.rb b/lib/oxidized/model/ciscosmb.rb
index e3a7f2a..eef4755 100644
--- a/lib/oxidized/model/ciscosmb.rb
+++ b/lib/oxidized/model/ciscosmb.rb
@@ -24,7 +24,7 @@ class CiscoSMB < Oxidized::Model
end
cmd 'show system' do |cfg|
- cfg.gsub! /System Up Time.*/, ''
+ cfg.gsub! /System Up Time.*\n/, ''
comment cfg
end