Fix json returned by queue status draft
authorJohan Lorenzo <jlorenzo@mozilla.com>
Thu, 01 Sep 2016 19:14:15 +0200
changeset 7137 a32a72e38ac1
parent 7136 2c3d7aaef19c
child 7138 be5df5d9b6d5
push id121
push userjlorenzo@mozilla.com
push dateThu, 01 Sep 2016 17:14:31 +0000
Fix json returned by queue status MozReview-Commit-ID: JHRQuOWMEOU
buildfarm/release/build_status.py
--- a/buildfarm/release/build_status.py
+++ b/buildfarm/release/build_status.py
@@ -30,11 +30,11 @@ def are_en_us_builds_completed(index, qu
         # At least one task is not created yet
         return False
 
     log.debug('All tasks have been found: %s', tasks_to_watch)
     return _are_all_tasks_completed(queue, tasks_to_watch)
 
 
 def _are_all_tasks_completed(queue, taskIds):
-    tasks_not_done_yet = [taskId for taskId in taskIds if queue.status(taskId)['state'] != 'completed']
+    tasks_not_done_yet = [taskId for taskId in taskIds if queue.status(taskId)['status']['state'] != 'completed']
     log.debug('These tasks are not completed yet: %s', tasks_not_done_yet)
     return len(tasks_not_done_yet) == 0