Skip to content

Commit 880ee32

Browse files
simonjbeaumontjohnelse
authored andcommitted
CP-5845: Fix partially applied helper function
The call_api_functions was only partially applied and so the function couldn't be used as a comparitor for the Schwarzian transform sort. Signed-off-by: Si Beaumont <[email protected]>
1 parent 1a286af commit 880ee32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/vgpuops.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let create_virtual_vgpu ~__context vm vgpu =
101101
in
102102
let sorted_pgpus = Helpers.sort_by_schwarzian ~descending:sort_desc
103103
(fun pgpu ->
104-
Helpers.call_api_functions (fun rpc session_id ->
104+
Helpers.call_api_functions ~__context (fun rpc session_id ->
105105
Client.Client.PGPU.get_remaining_capacity ~rpc ~session_id
106106
~self:pgpu ~vgpu_type:vgpu.type_ref))
107107
pgpus

0 commit comments

Comments
 (0)