From e25cf48452825a7929365ec29d63309b04b59be6 Mon Sep 17 00:00:00 2001 From: Yuri Zubov Date: Wed, 12 Sep 2018 17:37:01 +0300 Subject: Fixed NDMS (#1509) --- lib/oxidized/model/ndms.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/oxidized/model/ndms.rb') 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 -- cgit v1.2.1