From df2006b2756eb102fb47307ae78b594e0f91aed0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 23 Feb 2017 15:09:02 +0000 Subject: [PATCH] v2v: -i libvirt: Fix test for "json:" backing file support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks: Tomáš Golembiovský for pointing out the error and showing how to fix it. --- v2v/input_libvirt_other.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/v2v/input_libvirt_other.ml b/v2v/input_libvirt_other.ml index 1e4fab848..d4315a218 100644 --- a/v2v/input_libvirt_other.ml +++ b/v2v/input_libvirt_other.ml @@ -35,6 +35,7 @@ open Utils *) let error_if_libvirt_does_not_support_json_backingfile () = let libguestfs_backend = (open_guestfs ())#get_backend () in + let libguestfs_backend, _ = String.split ":" libguestfs_backend in if libguestfs_backend = "libvirt" then ( if Domainxml.libvirt_get_version () < (2, 1, 0) then error (f_"because of libvirt bug https://bugzilla.redhat.com/1134878 you must EITHER upgrade to libvirt >= 2.1.0 OR set this environment variable:\n\nexport LIBGUESTFS_BACKEND=direct\n\nand then rerun the virt-v2v command.")