mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-04 03:50:30 +00:00
always set .Plan in hookvars to properly format messages for prune/check operations
This commit is contained in:
@@ -96,6 +96,10 @@ func (t *taskRunnerImpl) ExecuteHooks(ctx context.Context, events []v1.Hook_Cond
|
||||
if planID != "" {
|
||||
plan, _ = t.findPlan()
|
||||
vars.Plan = plan
|
||||
} else {
|
||||
vars.Plan = &v1.Plan{
|
||||
Id: tasks.PlanForUnassociatedOperations,
|
||||
}
|
||||
}
|
||||
|
||||
hookTasks, err := hook.TasksTriggeredByEvent(t.Config(), repoID, planID, t.op, events, vars)
|
||||
|
||||
Reference in New Issue
Block a user