From 8805ae7570b3a7ee01c2839e3fb2b38a59162e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Heum=C3=BCller?= Date: Mon, 10 Apr 2017 11:25:55 +0200 Subject: Added secret and key statements to secret removal Values changed for every show command and versioning was not possible. --- 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 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 ' + cfg.gsub! /(set (?:passwd|password|psksecret|secret|key ENC)).*/, '\\1 ' cfg.gsub! /(set private-key).*-+END ENCRYPTED PRIVATE KEY-*"$/m , '\\1 ' cfg end -- cgit v1.2.1