mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 12:25:42 +03:00
Update nomad/job_endpoint.go
Co-Authored-By: cgbaker <cgbaker@hashicorp.com>
This commit is contained in:
committed by
Preetha Appan
parent
3b19c22f27
commit
024fd69c16
@@ -442,6 +442,7 @@ func (j *Job) Revert(args *structs.JobRevertRequest, reply *structs.JobRegisterR
|
||||
|
||||
// Build the register request
|
||||
revJob := jobV.Copy()
|
||||
// Use Vault Token from revert request to perform registration of reverted job.
|
||||
revJob.VaultToken = args.VaultToken
|
||||
reg := &structs.JobRegisterRequest{
|
||||
Job: revJob,
|
||||
|
||||
Reference in New Issue
Block a user