summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorBrian Candler <b.candler@pobox.com>2018-03-15 19:57:33 +0000
committerBrian Candler <b.candler@pobox.com>2018-03-15 19:57:33 +0000
commitdc28e4b352dde0b43656c93f852e744125dd708e (patch)
treead79ac9401945e7c43c6cd4d2aa1e45a5cfa88b2 /lib/oxidized/model
parent5a879372227bbacffdccab94349ec44aab47a26f (diff)
Skip the word 'encrypted' in Powerconnect password masking
Fixes #1212
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/powerconnect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
index 61e1cf2..f602a36 100644
--- a/lib/oxidized/model/powerconnect.rb
+++ b/lib/oxidized/model/powerconnect.rb
@@ -14,7 +14,7 @@ class PowerConnect < Oxidized::Model
end
cmd :secret do |cfg|
- cfg.gsub! /^username (\S+) password \S+ (.*)/, 'username \1 password <hidden> \2'
+ cfg.gsub! /^(username \S+ password (?:encrypted )?)\S+(.*)/, '\1<hidden>\2'
cfg
end