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 committed Jul 19, 2022
1 parent 208b682 commit fa73e6a
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 @@ -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")
Expand Down

0 comments on commit fa73e6a

Please sign in to comment.