Skip to content

Commit 31adafc

Browse files
lindigpsafont
authored andcommitted
Update ocaml/xapi-cli-server/records.ml
Co-authored-by: Pau Ruiz Safont <[email protected]> Signed-off-by: Christian Lindig <[email protected]>
1 parent b576ba0 commit 31adafc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ocaml/xapi-cli-server/records.ml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5471,13 +5471,9 @@ let host_driver_record rpc session_id host_driver =
54715471
()
54725472
; make_field ~name:"variants-uuid"
54735473
~get:(fun () ->
5474-
xv ()
5475-
|> List.map (fun (_, v) ->
5476-
(v.API.driver_variant_name, v.API.driver_variant_uuid)
5477-
)
5478-
|> List.map (fun (name, uuid) -> Printf.sprintf "%s=%s" name uuid)
5479-
|> String.concat "; "
5480-
)
5474+
map_and_concat
5475+
(fun _, v -> Printf.sprintf "%s/%s" v.API.driver_variant_name v.API.driver_variant_uuid)
5476+
(xv ())
54815477
()
54825478
; make_field ~name:"variants-hw-present"
54835479
~get:(fun () ->

0 commit comments

Comments
 (0)