We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 715fbd9 commit b31bea6Copy full SHA for b31bea6
ocaml/xapi/vgpuops.ml
@@ -100,8 +100,10 @@ let create_virtual_vgpu ~__context vm vgpu =
100
| `breadth_first -> true
101
in
102
let sorted_pgpus = Helpers.sort_by_schwarzian ~descending:sort_desc
103
- (fun pgpu -> Xapi_pgpu_helpers.get_remaining_capacity ~__context
104
- ~self:pgpu ~vgpu_type:vgpu.type_ref)
+ (fun pgpu ->
+ Helpers.call_api_functions (fun rpc session_id ->
105
+ Client.Client.PGPU.get_remaining_capacity ~rpc ~session_id
106
+ ~self:pgpu ~vgpu_type:vgpu.type_ref))
107
pgpus
108
109
let rec allocate_vgpu vgpu_type = function
0 commit comments