summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorroot <oh@onsteroids.net>2017-02-06 16:41:25 +0100
committerroot <oh@onsteroids.net>2017-02-06 16:41:25 +0100
commit5d739943be7c696ce88e70b3d137833dc0be5f8c (patch)
tree4eaacc9c1a2ee5c4b2608b5cfca3c3c4ad573d01 /lib/oxidized
parent19546b8b8cc672aa69474ab2c92a9d5714c81a7c (diff)
nicer regex for both password variants of fortiOS
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/fortios.rb3
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