diff --git a/kernelci/api/helper.py b/kernelci/api/helper.py index c157f469aa..3828d5a341 100644 --- a/kernelci/api/helper.py +++ b/kernelci/api/helper.py @@ -559,6 +559,8 @@ def submit_results(self, results, root): root_node = root.copy() root_node['result'] = results['node']['result'] root_node['state'] = results['node'].get('state', 'done') + if root_node.get('artifacts') is None: + root_node['artifacts'] = {} root_node['artifacts'].update(results['node']['artifacts']) root_node['data'].update(results['node'].get('data', {})) root_node['processed_by_kcidb_bridge'] = False