summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
"""
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 ''