From bedb0c0a6a7843a3db35304cafd2d62af3cc68d7 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 15 Apr 2024 21:45:07 +0800 Subject: [PATCH] fix: disk post create not inherit upper class --- pkg/compute/models/disks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compute/models/disks.go b/pkg/compute/models/disks.go index e6a6f0a6d1..6224e0d282 100644 --- a/pkg/compute/models/disks.go +++ b/pkg/compute/models/disks.go @@ -718,6 +718,7 @@ func getDiskResourceRequirements(ctx context.Context, userCred mcclient.TokenCre }*/ func (disk *SDisk) PostCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) { + disk.SVirtualResourceBase.PostCreate(ctx, userCred, ownerId, query, data) input := api.DiskCreateInput{} err := data.Unmarshal(&input) if err != nil {