mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Return SchedulerConfig instead of SchedulerConfigResponse struct (#10799)
This commit is contained in:
@@ -171,8 +171,8 @@ type PreemptionConfig struct {
|
||||
}
|
||||
|
||||
// SchedulerGetConfiguration is used to query the current Scheduler configuration.
|
||||
func (op *Operator) SchedulerGetConfiguration(q *QueryOptions) (*SchedulerConfigurationResponse, *QueryMeta, error) {
|
||||
var resp SchedulerConfigurationResponse
|
||||
func (op *Operator) SchedulerGetConfiguration(q *QueryOptions) (*SchedulerConfiguration, *QueryMeta, error) {
|
||||
var resp SchedulerConfiguration
|
||||
qm, err := op.c.query("/v1/operator/scheduler/configuration", &resp, q)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
Reference in New Issue
Block a user