Skip to content

Commit

Permalink
fix(#13844): canonicalize job to avoid nil pointer deference
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanpemble authored and tgross committed Feb 1, 2023
1 parent e4e4dc1 commit d9633e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/job_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,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")
Expand Down

0 comments on commit d9633e5

Please sign in to comment.