Do not append the endpoint for fs/xl disks in StorageInfo (#8472)

This commit is contained in:
Praveen raj Mani
2019-10-31 21:43:54 +05:30
committed by kannappanr
parent eac518b178
commit fa325665b1
4 changed files with 17 additions and 5 deletions

View File

@@ -252,12 +252,11 @@ func (fs *FSObjects) StorageInfo(ctx context.Context) StorageInfo {
if !fs.diskMount {
used = atomic.LoadUint64(&fs.totalUsed)
}
localPeer := GetLocalPeer(globalEndpoints)
storageInfo := StorageInfo{
Used: []uint64{used},
Total: []uint64{di.Total},
Available: []uint64{di.Free},
MountPaths: []string{localPeer + fs.fsPath},
MountPaths: []string{fs.fsPath},
}
storageInfo.Backend.Type = BackendFS
return storageInfo