fix: drive state not added in health report (#12603)

In case of FS mode, the drive state was not being added in the health
report. Fixed by hard coding it to "ok".
This commit is contained in:
Shireesh Anjal 2021-06-30 20:12:38 +05:30 committed by GitHub
parent 75ce633f0a
commit 4575291f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,7 @@ func (fs *FSObjects) StorageInfo(ctx context.Context) (StorageInfo, []error) {
storageInfo := StorageInfo{
Disks: []madmin.Disk{
{
State: madmin.DriveStateOk,
TotalSpace: di.Total,
UsedSpace: di.Used,
AvailableSpace: di.Free,