Permalink
Browse files

HACK: failwith rather than using an SR!

Signed-off-by: John Else <john.else@citrix.com>
  • Loading branch information...
johnelse committed Feb 9, 2016
1 parent 0111571 commit eaac32bfbca871c3f93a278de9ffe816d160909e
Showing with 1 addition and 1 deletion.
  1. +1 −1 ocaml/xapi/import.ml
View
@@ -257,7 +257,7 @@ let assert_can_live_import __context rpc session_id state vm_record =
List.assoc Constants.storage_migrate_vif_map_key vif.API.vIF_other_config
|> Ref.of_string
with Not_found ->
- Importexport.get_default_sr rpc session_id)
+ failwith "no VIF mapped")
|> Listext.List.setify
in
let ha_vm = Agility.HA_VM.Not_in_db (localhost, srs, networks, vm_record) in

0 comments on commit eaac32b

Please sign in to comment.