api: include Consul token in job revert API (#13065)
This commit is contained in:
parent
89c72d74d7
commit
b72ff42ada
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
api: Fixed a bug where Consul token was not respected for job revert API
|
||||
```
|
|
@ -441,7 +441,7 @@ func (j *Jobs) Revert(jobID string, version uint64, enforcePriorVersion *uint64,
|
|||
JobID: jobID,
|
||||
JobVersion: version,
|
||||
EnforcePriorVersion: enforcePriorVersion,
|
||||
// ConsulToken: consulToken, // TODO(shoenig) enable!
|
||||
ConsulToken: consulToken,
|
||||
VaultToken: vaultToken,
|
||||
}
|
||||
wm, err := j.client.write("/v1/job/"+url.PathEscape(jobID)+"/revert", req, &resp, q)
|
||||
|
|
Loading…
Reference in New Issue