From dc28e4b352dde0b43656c93f852e744125dd708e Mon Sep 17 00:00:00 2001 From: Brian Candler Date: Thu, 15 Mar 2018 19:57:33 +0000 Subject: Skip the word 'encrypted' in Powerconnect password masking Fixes #1212 --- lib/oxidized/model/powerconnect.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/powerconnect.rb') 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 \2' + cfg.gsub! /^(username \S+ password (?:encrypted )?)\S+(.*)/, '\1\2' cfg end -- cgit v1.2.1