mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Do not append the endpoint for fs/xl disks in StorageInfo (#8472)
This commit is contained in:
committed by
kannappanr
parent
eac518b178
commit
fa325665b1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user