summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ndms.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/ndms.rb')
-rw-r--r--lib/oxidized/model/ndms.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ndms.rb b/lib/oxidized/model/ndms.rb
index 1947f91..57cb706 100644
--- a/lib/oxidized/model/ndms.rb
+++ b/lib/oxidized/model/ndms.rb
@@ -11,7 +11,7 @@ class NDMS < Oxidized::Model
end
cmd 'show running-config' do |cfg|
- cfg = cfg.each_line.to_a[1..-2]
+ cfg = cfg.cut_both
cfg = cfg.reject { |line| line.match /(clock date|checksum)/ }.join
cfg
end