From f8f448e4e6c6dadd7c13a3a8fff88647ce7b02c5 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Fri, 31 Jan 2014 07:08:40 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): """ if not task_object.task_executed: return 'class=muted' - elif task_object.get_outcome_display == 'Failed': + elif task_object.outcome == task_object.OUTCOME_FAILED: return 'class=error' else: return '' -- cgit v1.2.3-54-g00ecf