mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
Anonymous pools in health info output are double counted (#16566)
This commit is contained in:
parent
990fc415f7
commit
be92046dfd
@ -2078,8 +2078,8 @@ func fetchHealthInfo(healthCtx context.Context, objectAPI ObjectLayer, query *ur
|
|||||||
// No ellipses pattern. Anonymize host name from every pool arg
|
// No ellipses pattern. Anonymize host name from every pool arg
|
||||||
pools := strings.Fields(poolsArgs)
|
pools := strings.Fields(poolsArgs)
|
||||||
anonPools = make([]string, len(pools))
|
anonPools = make([]string, len(pools))
|
||||||
for _, arg := range pools {
|
for index, arg := range pools {
|
||||||
anonPools = append(anonPools, anonAddr(arg))
|
anonPools[index] = anonAddr(arg)
|
||||||
}
|
}
|
||||||
return cmdLineWithoutPools + strings.Join(anonPools, " ")
|
return cmdLineWithoutPools + strings.Join(anonPools, " ")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user