Skip to content

Commit 5bbe1f4

Browse files
simonjbeaumontjohnelse
authored andcommitted
Correct field name in assert_no_resident_VGPUs_of_type
Signed-off-by: Si Beaumont <[email protected]>
1 parent ddb1848 commit 5bbe1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/xapi_pgpu_helpers.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ let assert_no_resident_VGPUs_of_type ~__context ~self ~vgpu_type =
5656
match Db.VGPU.get_records_where ~__context
5757
~expr:(And
5858
(Eq (Field "resident_on", Literal (Ref.string_of self)),
59-
Eq (Field "vgpu_type", Literal (Ref.string_of vgpu_type))))
59+
Eq (Field "type", Literal (Ref.string_of vgpu_type))))
6060
with
6161
| [] -> ()
6262
| vgpus_and_records ->

0 commit comments

Comments
 (0)