summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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