Anonymous pools in health info output are double counted (#16566)

This commit is contained in:
jiuker 2023-02-08 22:58:50 +08:00 committed by GitHub
parent 990fc415f7
commit be92046dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2078,8 +2078,8 @@ func fetchHealthInfo(healthCtx context.Context, objectAPI ObjectLayer, query *ur
// No ellipses pattern. Anonymize host name from every pool arg
pools := strings.Fields(poolsArgs)
anonPools = make([]string, len(pools))
for _, arg := range pools {
anonPools = append(anonPools, anonAddr(arg))
for index, arg := range pools {
anonPools[index] = anonAddr(arg)
}
return cmdLineWithoutPools + strings.Join(anonPools, " ")
}