mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 20:35:42 +03:00
Return SchedulerConfig instead of SchedulerConfigResponse struct (#10799)
This commit is contained in:
@@ -41,11 +41,10 @@ func (tc *OversubscriptionTest) enableMemoryOversubscription(f *framework.F) {
|
||||
resp, _, err := tc.Nomad().Operator().SchedulerGetConfiguration(nil)
|
||||
f.NoError(err)
|
||||
|
||||
tc.initialSchedulerConfig = resp.SchedulerConfig
|
||||
tc.initialSchedulerConfig = resp
|
||||
|
||||
conf := *resp.SchedulerConfig
|
||||
conf.MemoryOversubscriptionEnabled = true
|
||||
_, _, err = tc.Nomad().Operator().SchedulerSetConfiguration(&conf, nil)
|
||||
resp.MemoryOversubscriptionEnabled = true
|
||||
_, _, err = tc.Nomad().Operator().SchedulerSetConfiguration(resp, nil)
|
||||
f.NoError(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user