Bug 1335815 - Get the attributes from the intended parameter instead of accidentally getting it from the parent. r=dustin

MozReview-Commit-ID: Iz3Da3EtYVU

--HG--
extra : rebase_source : 3a4e5cb8fc91385510f195510c67e45546cd96ca
This commit is contained in:
Kartikaya Gupta 2017-02-01 12:37:53 -05:00
parent 2ad1ae41e9
commit 3e288f4b2c

View File

@ -68,7 +68,7 @@ def target_tasks_default(full_task_graph, parameters):
"""Target the tasks which have indicated they should be run on this project """Target the tasks which have indicated they should be run on this project
via the `run_on_projects` attributes.""" via the `run_on_projects` attributes."""
def filter(task): def filter(task):
run_on_projects = set(t.attributes.get('run_on_projects', [])) run_on_projects = set(task.attributes.get('run_on_projects', []))
if 'all' in run_on_projects: if 'all' in run_on_projects:
return True return True
project = parameters['project'] project = parameters['project']