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 56f7b74dd8a430812a4f83c509688f135603ff79
17 changes: 7 additions & 10 deletions ocaml/xapi-cli-server/records.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5477,16 +5477,13 @@ let host_driver_record rpc session_id host_driver =
()
; make_field ~name:"variants-hw-present"
~get:(fun () ->
xv ()
|> List.map (fun (_, v) ->
( v.API.driver_variant_name
, v.API.driver_variant_version
, v.API.driver_variant_hardware_present
)
)
|> List.filter (fun (_, _, status) -> status = true)
|> List.map (fun (name, _, _) -> name)
|> String.concat "; "
map_filter_and_concat (fun _, v ->
if v.API.driver_variant_hardware_present then
Some v.API.driver_variant_name
else
None
)
(xv ())
)
()
]
Expand Down