From fa73e6a1cf827c492da3f7d9f26d4931f6b6e127 Mon Sep 17 00:00:00 2001 From: Tristan Pemble Date: Tue, 19 Jul 2022 08:21:06 -0700 Subject: [PATCH] fix(#13844): canonicalize job to avoid nil pointer deference --- command/job_run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/job_run.go b/command/job_run.go index 805680f84b81..412a3fa30d90 100644 --- a/command/job_run.go +++ b/command/job_run.go @@ -345,6 +345,9 @@ func (c *JobRunCommand) Run(args []string) int { evalID := resp.EvalID + // #13844: canonicalize the job in case it was a partial API definition + job.Canonicalize() + // Check if we should enter monitor mode if detach || periodic || paramjob || multiregion { c.Ui.Output("Job registration successful")