Merge pull request #13007 from ioito/automated-cherry-pick-of-#13005-upstream-release-3.7

Automated cherry pick of #13005: fix(region): sku scheduler sync
This commit is contained in:
Zexi Li
2021-12-23 16:19:44 +08:00
committed by GitHub
+5
View File
@@ -621,6 +621,11 @@ func (self *SServerSku) AllowDeleteItem(ctx context.Context, userCred mcclient.T
return inWhiteList(self.Provider) && db.IsAdminAllowDelete(userCred, self)
}
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