diff --git a/.changelog/13065.txt b/.changelog/13065.txt new file mode 100644 index 000000000..1f367db48 --- /dev/null +++ b/.changelog/13065.txt @@ -0,0 +1,3 @@ +```release-note:bug +api: Fixed a bug where Consul token was not respected for job revert API +``` diff --git a/api/jobs.go b/api/jobs.go index bbecbf5c5..e7e3a3be5 100644 --- a/api/jobs.go +++ b/api/jobs.go @@ -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 {