From a28ff0400aeeb93e7a7dc5a0b242e7465c53432a Mon Sep 17 00:00:00 2001 From: rainzm Date: Wed, 12 May 2021 10:33:09 +0800 Subject: [PATCH] fix(cloudcommon): disable EventNotify for now The front end is not yet open, temporarily disable it to avoid meaningless logic and requests --- pkg/cloudcommon/notifyclient/notify.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cloudcommon/notifyclient/notify.go b/pkg/cloudcommon/notifyclient/notify.go index 4ff2e2e569..c2c5b8271e 100644 --- a/pkg/cloudcommon/notifyclient/notify.go +++ b/pkg/cloudcommon/notifyclient/notify.go @@ -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)