mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): add storage name for snapshot (#20829)
This commit is contained in:
@@ -92,6 +92,8 @@ type SnapshotDetails struct {
|
||||
|
||||
// 存储类型
|
||||
StorageType string `json:"storage_type"`
|
||||
// 存储名称
|
||||
Storage string `json:"storage"`
|
||||
// 磁盘状态
|
||||
DiskStatus string `json:"disk_status"`
|
||||
// 云主机名称
|
||||
|
||||
@@ -391,6 +391,7 @@ func (manager *SSnapshotManager) FetchCustomizeColumns(
|
||||
for i := range rows {
|
||||
if storage, ok := storages[storageIds[i]]; ok {
|
||||
rows[i].StorageType = storage.StorageType
|
||||
rows[i].Storage = storage.Name
|
||||
}
|
||||
if disk, ok := disks[diskIds[i]]; ok {
|
||||
rows[i].DiskStatus = disk.Status
|
||||
|
||||
Reference in New Issue
Block a user