diff options
author | Brian Candler <b.candler@pobox.com> | 2018-03-15 19:57:33 +0000 |
---|---|---|
committer | Brian Candler <b.candler@pobox.com> | 2018-03-15 19:57:33 +0000 |
commit | dc28e4b352dde0b43656c93f852e744125dd708e (patch) | |
tree | ad79ac9401945e7c43c6cd4d2aa1e45a5cfa88b2 /lib | |
parent | 5a879372227bbacffdccab94349ec44aab47a26f (diff) |
Skip the word 'encrypted' in Powerconnect password masking
Fixes #1212
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 2 |
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 |