diff --git a/nomad/plan_apply.go b/nomad/plan_apply.go index e909dbe8e..f48d7c4fb 100644 --- a/nomad/plan_apply.go +++ b/nomad/plan_apply.go @@ -203,7 +203,7 @@ func (p *planner) applyPlan(plan *structs.Plan, result *structs.PlanResult, snap } var evals []*structs.Evaluation - for preemptedJobID, _ := range preemptedJobIDs { + for preemptedJobID := range preemptedJobIDs { job, _ := p.State().JobByID(nil, preemptedJobID.Namespace, preemptedJobID.ID) if job != nil { eval := &structs.Evaluation{