mirror of https://github.com/minio/minio.git
Fix panic in StorageInfo call (#9050)
This commit is contained in:
parent
eac02c04f7
commit
5d25b10f72
|
@ -184,7 +184,7 @@ func (xl xlObjects) StorageInfo(ctx context.Context, local bool) StorageInfo {
|
|||
disks = xl.getDisks()
|
||||
} else {
|
||||
for _, d := range xl.getDisks() {
|
||||
if d.Hostname() == "" {
|
||||
if d != nil && d.Hostname() == "" {
|
||||
// Append this local disk since local flag is true
|
||||
disks = append(disks, d)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue