Fix panic in StorageInfo call (#9050)

master
poornas 5 years ago committed by GitHub
parent eac02c04f7
commit 5d25b10f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/xl-v1.go

@ -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…
Cancel
Save