summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-01-31 07:08:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:53 +0000
commitf8f448e4e6c6dadd7c13a3a8fff88647ce7b02c5 (patch)
tree4fde2206f871db3e65ab82e6703ebd72a0a90a4c /bitbake/lib/toaster/toastergui
parent155302acb2a17328687890ee7ae2398c295b533c (diff)
downloadpoky-f8f448e4e6c6dadd7c13a3a8fff88647ce7b02c5.tar.gz
bitbake: toaster: Fix for task_color tag
This patch changes the task_color tag in projecttags.py to make sure it adds the error class to the rows corresponding to failed tasks in the tasks table. (Bitbake rev: 44c5b3a93a93a464429e8d998aace25f840ae724) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index 667bc38420..042d6927c5 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -75,7 +75,7 @@ def task_color(task_object):
75 """ 75 """
76 if not task_object.task_executed: 76 if not task_object.task_executed:
77 return 'class=muted' 77 return 'class=muted'
78 elif task_object.get_outcome_display == 'Failed': 78 elif task_object.outcome == task_object.OUTCOME_FAILED:
79 return 'class=error' 79 return 'class=error'
80 else: 80 else:
81 return '' 81 return ''