mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-10-28 17:47:39 +00:00
fix: plan _system_ not found bug when running health operations
This commit is contained in:
1 parent
0d98e4447b
commit
c19665ab06
1 file changed
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user