diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/fortios.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb index 43374d5..fa8fd33 100644 --- a/lib/oxidized/model/fortios.rb +++ b/lib/oxidized/model/fortios.rb @@ -15,8 +15,7 @@ class FortiOS < Oxidized::Model end cmd :secret do |cfg| - cfg.gsub! /(set password).*/, '\\1 <configuration removed>' - cfg.gsub! /(set passwd).*/, '\\1 <configuration removed>' + cfg.gsub! /(set (?:passwd|password)).*/, '\\1 <configuration removed>' cfg end |