From 40fc49f818e0c85eac824f76aba9f4d5ab08c6fa Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Tue, 9 Feb 2016 10:52:08 -0500 Subject: strip the value of conf_file_ver --- lib/oxidized/model/fortios.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index 41bdede..3515b46 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -6,7 +6,7 @@ class FortiOS < Oxidized::Model cmd :all do |cfg, cmdstring| new_cfg = comment "COMMAND: #{cmdstring}\n" - new_cfg << cfg.each_line.to_a[1..-2].join + new_cfg << cfg.each_line.to_a[1..-2].map { |line| line.gsub(/(conf_file_ver=)(.*)/, '\1\3') }.join end cmd 'get system status' do |cfg| -- cgit v1.2.1