From 64323fc762cd51d2408cb4a99015efc558e160d2 Mon Sep 17 00:00:00 2001 From: xdlbdy Date: Sat, 25 Mar 2023 18:15:04 +0800 Subject: [PATCH] feat: trigger controller wait eventbus ready Signed-off-by: xdlbdy --- pkg/cluster/eventbus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/eventbus.go b/pkg/cluster/eventbus.go index a8168a427..8a72b0295 100644 --- a/pkg/cluster/eventbus.go +++ b/pkg/cluster/eventbus.go @@ -77,7 +77,7 @@ func (es *eventbusService) GetEventbus(ctx context.Context, id uint64) (*meta.Ev func (es *eventbusService) IsSystemEventbusExistByName(ctx context.Context, name string) (bool, error) { ebPb, err := es.GetSystemEventbusByName(ctx, name) if err != nil { - if !errors.Is(err, errors.ErrResourceNotFound) { + if errors.Is(err, errors.ErrResourceNotFound) { return false, nil } return false, err