fix(cloudcommon): disable EventNotify for now

The front end is not yet open, temporarily disable it to avoid meaningless logic and requests
This commit is contained in:
rainzm
2021-05-12 10:34:41 +08:00
parent 66f017fd87
commit a28ff0400a
+3
View File
@@ -240,6 +240,9 @@ func (t *eventTask) Run() {
}
func EventNotify(ctx context.Context, userCred mcclient.TokenCredential, ep SEventNotifyParam) {
// disable EventNotify for now
return
ret, err := db.FetchCustomizeColumns(ep.Obj.GetModelManager(), ctx, userCred, jsonutils.NewDict(), []interface{}{ep.Obj}, stringutils2.SSortedStrings{}, false)
if err != nil {
log.Errorf("unable to FetchCustomizeColumns: %v", err)