summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiev@shopify.com>2016-02-09 10:52:08 -0500
committerElvin Efendi <elvin.efendiev@shopify.com>2016-02-09 10:52:08 -0500
commit40fc49f818e0c85eac824f76aba9f4d5ab08c6fa (patch)
tree4e03625dd3ac71fbf956f3927027fe3980e90f18
parenta532a6307796d2195f827930304100c3b48ed20e (diff)
strip the value of conf_file_ver
-rw-r--r--lib/oxidized/model/fortios.rb2
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|