heal: Report bucket healing result correctly (#20721)

This commit is contained in:
Anis Eleuch
2024-12-04 00:12:25 +01:00
committed by GitHub
parent 734d1e320a
commit eddbe6bca2
3 changed files with 22 additions and 16 deletions

View File

@@ -101,7 +101,7 @@ func healBucketLocal(ctx context.Context, bucket string, opts madmin.HealOpts) (
for i := range beforeState {
res.Before.Drives = append(res.Before.Drives, madmin.HealDriveInfo{
UUID: "",
Endpoint: localDrives[i].String(),
Endpoint: localDrives[i].Endpoint().String(),
State: beforeState[i],
})
}
@@ -149,7 +149,7 @@ func healBucketLocal(ctx context.Context, bucket string, opts madmin.HealOpts) (
for i := range afterState {
res.After.Drives = append(res.After.Drives, madmin.HealDriveInfo{
UUID: "",
Endpoint: localDrives[i].String(),
Endpoint: localDrives[i].Endpoint().String(),
State: afterState[i],
})
}