scheduler: make the default choice an option

The default choice on the force build form will select a random worker.

builder_to_workers dictionary values can no longer be strings.

Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Halstead 2019-10-18 09:31:05 -07:00 committed by Richard Purdie
parent 8eba9650b1
commit e00253a850
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ builder_to_workers = {
"oe-selftest-opensuse": workers_opensuse,
"oe-selftest-centos": workers_centos,
"meta-mingw": workers_wine,
"buildperf-ubuntu1604": "perf-ubuntu1604",
"buildperf-centos7": "perf-centos7",
"buildperf-ubuntu1604": ["perf-ubuntu1604"],
"buildperf-centos7": ["perf-centos7"],
"default": workers
}

View File

@ -81,7 +81,7 @@ def props_for_builder(builder):
default="*",
multiple=False,
strict=True,
choices=worker_list))
choices=worker_list + ["*"]))
return props