From 770be31237f7466c26abbf2d58d5ed4ede585636 Mon Sep 17 00:00:00 2001 From: Bruno Brito Carvalho Date: Thu, 27 Jul 2017 17:52:34 +0200 Subject: Exclude secondary-secrets and rsso-secret I've noticed there are sometimes secondary keys and rsso-secrets, so I propose we also replace them (worked for us)! --- lib/oxidized/model/fortios.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 ' + cfg.gsub! /(set (?:passwd|password|secondary-secret|rsso-secret|psksecret|secret|key ENC)).*/, '\\1 ' cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 ' cfg end -- cgit v1.2.1