From 949cef6348c4751bbef526a33635064accff3548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Sat, 28 Feb 2026 16:38:23 +0800 Subject: [PATCH] fix(region): snapshot size opslog (#24368) --- pkg/compute/models/snapshots.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compute/models/snapshots.go b/pkg/compute/models/snapshots.go index 30b9a85691..b842236dc5 100644 --- a/pkg/compute/models/snapshots.go +++ b/pkg/compute/models/snapshots.go @@ -436,7 +436,8 @@ func (manager *SSnapshotManager) FetchCustomizeColumns( func (self *SSnapshot) GetShortDesc(ctx context.Context) *jsonutils.JSONDict { res := self.SVirtualResourceBase.GetShortDesc(ctx) - res.Add(jsonutils.NewInt(int64(self.VirtualSize)), "size") + res.Add(jsonutils.NewInt(int64(self.VirtualSize)), "virtual_size") + res.Add(jsonutils.NewInt(int64(self.Size)), "size") res.Add(jsonutils.NewString(self.DiskId), "disk_id") disk, _ := self.GetDisk() if disk != nil {