Skip to content

Commit 736c4ab

Browse files
committed
CA-189767: Use Smint Vdi_snapshot type capability rather than string
Signed-off-by: Sharad Yadav <[email protected]>
1 parent ed88c15 commit 736c4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/xapi_vm_migrate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let assert_sr_support_migration ~__context ~vdi_map ~remote_rpc ~session_id =
7474
| [ _, plugin ] -> plugin.API.sM_capabilities
7575
| _ -> []
7676
in
77-
if not (List.exists (fun cp -> cp = "Vdi_snapshot") sm_capabilities) then
77+
if not (List.exists (fun cp -> cp = Smint.(string_of_capability Vdi_snapshot)) sm_capabilities) then
7878
raise (Api_errors.Server_error(Api_errors.sr_does_not_support_migration, [Ref.string_of sr]))
7979
) vdi_map
8080

0 commit comments

Comments
 (0)