mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-10-16 03:19:14 +00:00
always set .Plan in hookvars to properly format messages for prune/check operations
This commit is contained in:
1 parent
e60a4fbcd7
commit
0ecebf8ce4
1 file changed
+4
@@ -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