Skip to content

Commit d61501e

Browse files
committed
src: scheduler: fix crash in _verify_architecture_filter()
For some reason, kbuild jobs might not have an `arch` param, so let's ensure we don't crash in this case. Signed-off-by: Arnaud Ferraris <[email protected]>
1 parent b7be078 commit d61501e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def _verify_architecture_filter(self, job, node):
377377
"""Verify if the job can be run, if node has architecture filter
378378
"""
379379
if job.kind == 'kbuild' and 'architecture_filter' in node['data'] and \
380-
node['data']['architecture_filter'] and \
380+
node['data']['architecture_filter'] and 'arch' in job.params and \
381381
job.params['arch'] not in node['data']['architecture_filter']:
382382
msg = f"Node {node['id']} has architecture filter "
383383
msg += f"{node['data']['architecture_filter']} "

0 commit comments

Comments
 (0)