diff options
author | ytti <saku@ytti.fi> | 2017-04-15 14:31:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-15 14:31:02 +0300 |
commit | c027e7cbc156783927d6f1d84507430378686530 (patch) | |
tree | d0609aa4a159dbecaaab80f75eac333bca6783a2 /lib/oxidized | |
parent | 4a5a654b3fe899c90dd26876177e2ded89811d70 (diff) | |
parent | 8805ae7570b3a7ee01c2839e3fb2b38a59162e5c (diff) |
Merge pull request #803 from bheum/master
fortios Added secret and key statements to secret removal
Diffstat (limited to 'lib/oxidized')
-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 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 |