Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ocaml/xapi-cli-server/records.ml
Co-authored-by: Pau Ruiz Safont <[email protected]>
Signed-off-by: Christian Lindig <[email protected]>
  • Loading branch information
2 people authored and Christian Lindig committed Jan 21, 2025
commit 31adafc3ce796e58fa1c996cdc70ff58489cc88b
10 changes: 3 additions & 7 deletions ocaml/xapi-cli-server/records.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5471,13 +5471,9 @@ let host_driver_record rpc session_id host_driver =
()
; make_field ~name:"variants-uuid"
~get:(fun () ->
xv ()
|> List.map (fun (_, v) ->
(v.API.driver_variant_name, v.API.driver_variant_uuid)
)
|> List.map (fun (name, uuid) -> Printf.sprintf "%s=%s" name uuid)
|> String.concat "; "
)
map_and_concat
(fun _, v -> Printf.sprintf "%s/%s" v.API.driver_variant_name v.API.driver_variant_uuid)
(xv ())
()
; make_field ~name:"variants-hw-present"
~get:(fun () ->
Expand Down