diff options
author | Elvin Efendi <elvin.efendiev@shopify.com> | 2016-02-09 10:52:08 -0500 |
---|---|---|
committer | Elvin Efendi <elvin.efendiev@shopify.com> | 2016-02-09 10:52:08 -0500 |
commit | 40fc49f818e0c85eac824f76aba9f4d5ab08c6fa (patch) | |
tree | 4e03625dd3ac71fbf956f3927027fe3980e90f18 /lib/oxidized/model | |
parent | a532a6307796d2195f827930304100c3b48ed20e (diff) |
strip the value of conf_file_ver
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/fortios.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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<stripped>\3') }.join end cmd 'get system status' do |cfg| |