fix: make sure maintenance=true is honored properly (#19156)

fixes a regression from #18700
This commit is contained in:
Harshavardhana
2024-02-29 08:37:57 -08:00
committed by GitHub
parent 44b70eb646
commit d7520f0ae6
4 changed files with 8 additions and 5 deletions
+1
View File
@@ -176,6 +176,7 @@ func getDisksInfo(disks []StorageAPI, endpoints []Endpoint, metrics bool) (disks
PoolIndex: endpoints[index].PoolIdx,
SetIndex: endpoints[index].SetIdx,
DiskIndex: endpoints[index].DiskIdx,
Local: endpoints[index].IsLocal,
}
if disks[index] == OfflineDisk {
di.State = diskErrToDriveState(errDiskNotFound)