Skip to content
Snippets Groups Projects
Unverified Commit 4a9f82ef authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

dashboard: Fix system selection.

* src/cuirass/http.scm (url-handler): Use "x86_64-linux" as the default system
only if is supported by the specification.
parent ff64d4ae
No related branches found
No related tags found
No related merge requests found
......@@ -829,11 +829,14 @@ into a specification record and return it."
(('GET "eval" (= string->number id) "dashboard")
(let* ((params (request-parameters request))
(system (assq-ref params 'system))
(default-system "x86_64-linux")
(spec-name (db-get-evaluation-specification id)))
(if spec-name
(let* ((spec (db-get-specification spec-name))
(systems (specification-systems spec)))
(systems (specification-systems spec))
(default-system
(if (member "x86_64-linux" systems)
"x86_64-linux"
(car systems))))
(respond-html
(html-page
"Dashboard"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment