Bug 1692671 - allow toolchain-alias to be a list, r=bustage
Differential Revision: https://phabricator.services.mozilla.com/D105130 --HG-- extra : amend_source : 91afb55de67b105235a9048270a677de3b2484dc extra : histedit_source : 846330430700777ec94386e86b63251e95f67e93
This commit is contained in:
Родитель
995d3d7bff
Коммит
67f924810f
|
@ -9,6 +9,7 @@ import logging
|
|||
|
||||
from taskgraph.util.yaml import load_yaml
|
||||
from taskgraph.util.python_path import find_object
|
||||
from six import text_type
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -18,7 +19,11 @@ def _get_aliases(kind, job):
|
|||
|
||||
if kind == "toolchain":
|
||||
if job["run"].get("toolchain-alias"):
|
||||
aliases.add(job["run"].get("toolchain-alias"))
|
||||
aliaslist = job["run"].get("toolchain-alias")
|
||||
if isinstance(aliaslist, text_type):
|
||||
aliaslist = [aliaslist]
|
||||
for alias in aliaslist:
|
||||
aliases.add(alias)
|
||||
|
||||
return aliases
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче