use the correct endpoints for offline drives

This commit is contained in:
Harshavardhana 2020-08-12 19:17:41 -07:00
parent 79e21601b0
commit b32d0a5b60
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func getDisksInfo(disks []StorageAPI, endpoints []string) (disksInfo []madmin.Di
errs = g.Wait()
// Wait for the routines.
for i, diskInfoErr := range errs {
ep := endpoints[i]
ep := disksInfo[i].Endpoint
if diskInfoErr != nil {
offlineDisks[ep]++
continue