Fix arch filter in list of hosts webUI

Fixes: https://pagure.io/koji/issue/3491
This commit is contained in:
Jana Cupova 2022-09-13 10:58:49 +02:00 committed by Tomas Kopecek
parent d335ac05ae
commit 3dfa3854d8

View file

@ -1685,7 +1685,7 @@ def hosts(environ, state='enabled', start=None, order='name', ready='all', chann
if arch != 'all':
arch = _validate_arch(arch)
if arch:
hosts = [x for x in hosts if arch in x['arches']]
hosts = [x for x in hosts if arch in x['arches'].split(' ')]
else:
arch = 'all'
values['arch'] = arch