mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
api: use the task in Allocations.GetPauseState (#23377)
This commit is contained in:
@@ -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