Skip to content

Commit

Permalink
fix(redis): 修复写exporter配置文件 bug TencentBlueKing#7634
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup authored and iSecloud committed Nov 5, 2024
1 parent fa6e17f commit a7a2fb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func GetProxyPasswdFromConfFlie(port int, role string) (password string, err err
if err != nil {
return
}
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "#"|awk '{print $NF}'`, confFile)
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "#\s*password" |awk '{print $NF}'`, confFile)
} else if role == consts.MetaRolePredixy {
confFile, err = GetPredixyLocalConfFile(port)
if err != nil {
Expand Down

0 comments on commit a7a2fb6

Please sign in to comment.