summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/fortios.rb
diff options
context:
space:
mode:
authorBenedikt Heumüller <bheum@users.noreply.github.com>2017-04-10 11:25:55 +0200
committerBenedikt Heumüller <bheum@users.noreply.github.com>2017-04-10 11:25:55 +0200
commit8805ae7570b3a7ee01c2839e3fb2b38a59162e5c (patch)
tree5768bb5b792595a80a08a5df7da3c4aa386460e6 /lib/oxidized/model/fortios.rb
parent339bf606b646f127e7f5a4544613cfafeaa28f8a (diff)
Added secret and key statements to secret removal
Values changed for every show command and versioning was not possible.
Diffstat (limited to 'lib/oxidized/model/fortios.rb')
-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 2415537..cdaa282 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)).*/, '\\1 <configuration removed>'
+ cfg.gsub! /(set (?:passwd|password|psksecret|secret|key ENC)).*/, '\\1 <configuration removed>'
cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 <configuration removed>'
cfg
end