Skip to content

Commit

Permalink
Merge pull request #19998 from swordqiu/automated-cherry-pick-of-#199…
Browse files Browse the repository at this point in the history
…96-upstream-release-3.11

Automated cherry pick of #19996: fix: disk post create not inherit upper class
  • Loading branch information
zexi authored Apr 16, 2024
2 parents 86d4b45 + bedb0c0 commit 5a580cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/compute/models/disks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a580cb

Please sign in to comment.