mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #19996 from swordqiu/hotfix/qj-disk-not-inheric-post-create
fix: disk post create not inherit upper class
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user