[Toaster] [PATCH 17/20] toaster: task filters Remove invalid option

Belen Barros Pena belen.barros.pena at linux.intel.com
Thu Jun 9 06:24:30 PDT 2016


In the 'outcome' filter for tasks, remove the 'not applicable' option,
since it should not be exposed to users.

Signed-off-by: Belen Barros Pena <belen.barros.pena at linux.intel.com>
---
 bitbake/lib/toaster/toastergui/buildtables.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bitbake/lib/toaster/toastergui/buildtables.py b/bitbake/lib/toaster/toastergui/buildtables.py
index 121b860..ed9b40e 100644
--- a/bitbake/lib/toaster/toastergui/buildtables.py
+++ b/bitbake/lib/toaster/toastergui/buildtables.py
@@ -394,6 +394,8 @@ class BuildTasksTable(BuildTablesMixin):
                                    title="Filter Task by 'Outcome'")
 
         for outcome_enum, title in Task.TASK_OUTCOME:
+            if outcome_enum is Task.OUTCOME_NA:
+                continue
             action = TableFilterActionToggle(
                 title.replace(" ", "_").lower(),
                 "%s Tasks" % title,
-- 
1.9.1



More information about the toaster mailing list