Update nomad/job_endpoint.go
Co-Authored-By: cgbaker <cgbaker@hashicorp.com>
This commit is contained in:
parent
cdde30ebd0
commit
188c32421a
|
@ -442,6 +442,7 @@ func (j *Job) Revert(args *structs.JobRevertRequest, reply *structs.JobRegisterR
|
||||||
|
|
||||||
// Build the register request
|
// Build the register request
|
||||||
revJob := jobV.Copy()
|
revJob := jobV.Copy()
|
||||||
|
// Use Vault Token from revert request to perform registration of reverted job.
|
||||||
revJob.VaultToken = args.VaultToken
|
revJob.VaultToken = args.VaultToken
|
||||||
reg := &structs.JobRegisterRequest{
|
reg := &structs.JobRegisterRequest{
|
||||||
Job: revJob,
|
Job: revJob,
|
||||||
|
|
Loading…
Reference in New Issue