Skip to content

Commit 0c46313

Browse files
Jeny SadadiaJenySadadia
authored andcommitted
KCIDB bridge: fix maestro_viewer URL
Make API URL dynamic in `maestro_viewer` field for KCIDB submissions. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent 988e179 commit 0c46313

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/send_kcidb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __init__(self, configs, args, name):
5858
super().__init__(configs, args, name)
5959
self._jobs = configs['jobs']
6060
self._platforms = configs['platforms']
61+
self._api_url = self._api_config.url
6162
self._lava_labs = {}
6263
self._last_unprocessed_search = None
6364
self._nodecache = {}
@@ -306,7 +307,7 @@ def _parse_build_node(self, origin, node):
306307
'kernel_type': node['data'].get('kernel_type'),
307308
'error_code': error_code,
308309
'error_msg': node['data'].get('error_msg'),
309-
'maestro_viewer': f"https://api.kernelci.org/viewer?node_id={node['id']}"
310+
'maestro_viewer': f"{self._api_url}/viewer?node_id={node['id']}",
310311
}
311312
}
312313
artifacts = node.get('artifacts')

0 commit comments

Comments
 (0)