summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-09 18:07:20 +0200
committerytti <saku@ytti.fi>2016-02-09 18:07:20 +0200
commit96b15c70d0dedb464b191b01fdbeb2c4480c3697 (patch)
treed491c73112833e928ae9b9561dcc3928eff8279f /lib/oxidized
parent5fec3832793cf89a0969ad6c60a1ecf478131f66 (diff)
parent40fc49f818e0c85eac824f76aba9f4d5ab08c6fa (diff)
Merge pull request #311 from Shopify/fortios-fix
strip the value of conf_file_ver
Diffstat (limited to 'lib/oxidized')
-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|