Skip to content

Commit

Permalink
backport of commit 0d1eedd (#13316)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Jun 9, 2022
1 parent ae8de32 commit 6903c64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/13065.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
api: Fixed a bug where Consul token was not respected for job revert API
```
4 changes: 2 additions & 2 deletions api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ func (j *Jobs) Revert(jobID string, version uint64, enforcePriorVersion *uint64,
JobID: jobID,
JobVersion: version,
EnforcePriorVersion: enforcePriorVersion,
// ConsulToken: consulToken, // TODO(shoenig) enable!
VaultToken: vaultToken,
ConsulToken: consulToken,
VaultToken: vaultToken,
}
wm, err := j.client.write("/v1/job/"+url.PathEscape(jobID)+"/revert", req, &resp, q)
if err != nil {
Expand Down

0 comments on commit 6903c64

Please sign in to comment.