summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorDanilo Sousa <danilopopeye@users.noreply.github.com>2017-08-22 11:34:02 -0300
committerGitHub <noreply@github.com>2017-08-22 11:34:02 -0300
commitc8ca088c1314bc55284fd6bc110a2372d22b1ce4 (patch)
tree310bc8641001f9f972461840776c533a59100352 /lib/oxidized/model
parent64e4567630c8eb209df5bd1f3573903a441c06a7 (diff)
parent770be31237f7466c26abbf2d58d5ed4ede585636 (diff)
Merge pull request #947 from brunobritocarvalho/patch-1
Exclude secondary-secrets and rsso-secret
Diffstat (limited to 'lib/oxidized/model')
-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 0249933..2d15aae 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -15,7 +15,7 @@ class FortiOS < Oxidized::Model
end
cmd :secret do |cfg|
- cfg.gsub! /(set (?:passwd|password|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg
end