Update nomad/job_endpoint.go

Co-Authored-By: cgbaker <cgbaker@hashicorp.com>
This commit is contained in:
Michael Schurter 2019-03-28 14:56:12 -04:00 committed by Preetha Appan
parent cdde30ebd0
commit 188c32421a
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 1 additions and 0 deletions

View File

@ -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,