summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Zubov <yury.zubau@gmail.com>2018-09-12 17:37:01 +0300
committerWild Kat <wk@users.noreply.github.com>2018-09-12 16:37:01 +0200
commite25cf48452825a7929365ec29d63309b04b59be6 (patch)
tree63dcfb1dc13f728857e877bc54e49d22e3dc3e91
parent0360043ba5daadade47d487e7740da6eec9eb68e (diff)
Fixed NDMS (#1509)
-rw-r--r--lib/oxidized/model/ndms.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oxidized/model/ndms.rb b/lib/oxidized/model/ndms.rb
index 57cb706..dab3f62 100644
--- a/lib/oxidized/model/ndms.rb
+++ b/lib/oxidized/model/ndms.rb
@@ -11,8 +11,7 @@ class NDMS < Oxidized::Model
end
cmd 'show running-config' do |cfg|
- cfg = cfg.cut_both
- cfg = cfg.reject { |line| line.match /(clock date|checksum)/ }.join
+ cfg = cfg.cut_both.each_line.reject { |line| line.match /(clock date|checksum)/ }.join
cfg
end