Skip to content

Commit cf58e3e

Browse files
Merge pull request xapi-project#2541 from euanh/CA-191048
CA-191048: Reword 'VIF map not allowed for intra-pool' migration message
2 parents c9e5518 + c0ed1ab commit cf58e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xapi/xapi_vm_migrate.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ let assert_can_migrate ~__context ~vm ~dest ~live ~vdi_map ~vif_map ~options =
834834
let snapshot = Helpers.get_boot_record ~__context ~self:vm in
835835
Xapi_vm_helpers.assert_can_boot_here ~__context ~self:vm ~host ~snapshot ~do_sr_check:false ();
836836
if vif_map <> [] then
837-
raise (Api_errors.Server_error(Api_errors.not_implemented, [
838-
"VIF mapping is not supported for intra-pool migration"]))
837+
raise (Api_errors.Server_error(Api_errors.operation_not_allowed, [
838+
"VIF mapping is not allowed for intra-pool migration"]))
839839
| `cross_pool remote_rpc ->
840840
(* Prevent VMs from being migrated onto a host with a lower platform version *)
841841
let host_to = Helpers.RemoteObject (remote_rpc, session_id, dest_host_ref) in

0 commit comments

Comments
 (0)