summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/powerconnect.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-03-17 15:56:20 +0200
committerGitHub <noreply@github.com>2018-03-17 15:56:20 +0200
commit2a73c309b1b375067aea97b277e823994162f28c (patch)
tree5e127000272af5a7dd817556e4ce273281a11145 /lib/oxidized/model/powerconnect.rb
parentec02de8a8a89699425f13ba4d7f4969e54a84e25 (diff)
parentdc28e4b352dde0b43656c93f852e744125dd708e (diff)
Merge pull request #1227 from candlerb/candlerb/1212
Skip the word 'encrypted' in Powerconnect password masking
Diffstat (limited to 'lib/oxidized/model/powerconnect.rb')
-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