diff --git a/pkg/compute/models/skus.go b/pkg/compute/models/skus.go index 09bc708918..f780109391 100644 --- a/pkg/compute/models/skus.go +++ b/pkg/compute/models/skus.go @@ -591,6 +591,11 @@ func (self *SServerSku) ValidateUpdateData(ctx context.Context, userCred mcclien return input, nil } +func (self *SServerSku) PostUpdate(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) { + ServerSkuManager.ClearSchedDescCache(true) + self.SEnabledStatusStandaloneResourceBase.PostUpdate(ctx, userCred, query, data) +} + func (self *SServerSku) Delete(ctx context.Context, userCred mcclient.TokenCredential) error { log.Infof("SServerSku delete do nothing") return nil