[Toaster] [PATCH][v2] toaster: fix typo which prevents filters from working

Michael Wood michael.g.wood at intel.com
Thu Jun 9 06:42:40 PDT 2016


Thanks pushed to toaster-next

On 07/06/16 16:29, Elliot Smith wrote:
> 'k' was replaced by 'key' at some point but not fixed in the
> body of the loop. This caused a failure when the the query
> was constructed for a filtered queryset, due to the variable
> not being defined.
>
> Signed-off-by: Elliot Smith <elliot.smith at intel.com>
> ---
>   bitbake/lib/toaster/toastergui/views.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
> index 16f98ee..9d06000 100755
> --- a/bitbake/lib/toaster/toastergui/views.py
> +++ b/bitbake/lib/toaster/toastergui/views.py
> @@ -268,7 +268,7 @@ def _get_filtering_query(filter_string):
>           or_values = kv[1].split(OR_VALUE_SEPARATOR)
>           query = None
>           for key, val in zip(or_keys, or_values):
> -            x = __get_q_for_val(k, val)
> +            x = __get_q_for_val(key, val)
>               query = query | x if query else x
>   
>           and_query = and_query & query if and_query else query



More information about the toaster mailing list