From 0685c2f737d12a25c545301f47a29bd50730b85a Mon Sep 17 00:00:00 2001 From: ioito Date: Thu, 23 Dec 2021 14:50:17 +0800 Subject: [PATCH] fix(region): sku scheduler sync --- pkg/compute/models/skus.go | 5 +++++ 1 file changed, 5 insertions(+) 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