fix(region): sku scheduler sync

This commit is contained in:
ioito
2021-12-23 14:50:17 +08:00
parent a0d3aec3db
commit d3bea782b9

View File

@@ -615,6 +615,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