mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix(region): sku scheduler sync
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user