Bug 1278999 - handle generic worker style artifacts (list not dictionary). r=wcosta

--HG--
extra : rebase_source : 975894206800aa9261f0683ffcd9948f0da4d408
This commit is contained in:
Peter Moore 2016-06-09 17:12:02 +02:00
Родитель dd368c9569
Коммит 75d5c0359a
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -204,7 +204,10 @@ def set_expiration(task, timestamp):
except KeyError:
return
for artifact in artifacts.values():
# for docker-worker, artifacts is a dictionary
# for generic-worker, artifacts is a list
# for taskcluster-worker, it will depend on what we do in artifacts plugin
for artifact in artifacts.values() if hasattr(artifacts, "values") else artifacts:
artifact['expires'] = timestamp
def add_treeherder_revision_info(task, revision, revision_hash):