From c19665ab063a32e2cb0ca73a4e0eaa4cee793601 Mon Sep 17 00:00:00 2001 From: Gareth Date: Fri, 12 Jul 2024 13:58:16 -0700 Subject: [PATCH] fix: plan _system_ not found bug when running health operations --- internal/hook/hook.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/hook/hook.go b/internal/hook/hook.go index d95b331f5..9fc8db0f9 100644 --- a/internal/hook/hook.go +++ b/internal/hook/hook.go @@ -22,9 +22,6 @@ func TasksTriggeredByEvent(config *v1.Config, repoID string, planID string, pare return nil, fmt.Errorf("repo %v not found", repoID) } plan := cfg.FindPlan(config, planID) - if plan == nil && planID != "" { - return nil, fmt.Errorf("plan %v not found", planID) - } for idx, hook := range repo.GetHooks() { event := firstMatchingCondition(hook, events)