mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
api: use the task in Allocations.GetPauseState (#23377)
This commit is contained in:
3
.changelog/23377.txt
Normal file
3
.changelog/23377.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
api: (Enterprise) fixed Allocations.GetPauseState method discarding the task argument
|
||||
```
|
||||
@@ -251,7 +251,7 @@ func (a *Allocations) SetPauseState(alloc *Allocation, q *QueryOptions, task, st
|
||||
// The ?task=<task> query parameter must be set.
|
||||
func (a *Allocations) GetPauseState(alloc *Allocation, q *QueryOptions, task string) (string, *QueryMeta, error) {
|
||||
var resp AllocGetPauseResponse
|
||||
qm, err := a.client.query("/v1/client/allocation/"+alloc.ID+"/pause", &resp, q)
|
||||
qm, err := a.client.query("/v1/client/allocation/"+alloc.ID+"/pause?task="+task, &resp, q)
|
||||
state := resp.ScheduleState
|
||||
return state, qm, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user