Skip to content

Commit

Permalink
api: include Consul token in job revert API (#13065)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed May 19, 2022
1 parent 768ffc2 commit 3e8f52b
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 3e8f52b

Please sign in to comment.