[Pkg-libvirt-commits] [libguestfs] 87/266: v2v: Fix libvirt source to parse the format of a disk properly.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:41:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.

commit 89417216b9a151829ecf108630af1195e5fe0b9f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Aug 13 12:34:12 2014 +0100

    v2v: Fix libvirt source to parse the format of a disk properly.
    
    Missing '@' means it wasn't looking for the attribute.
---
 v2v/source_libvirt.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/source_libvirt.ml b/v2v/source_libvirt.ml
index 236308b..91c6e1f 100644
--- a/v2v/source_libvirt.ml
+++ b/v2v/source_libvirt.ml
@@ -108,7 +108,7 @@ let create_xml ?dir xml =
         if target_dev <> "" then Some target_dev else None in
 
       let format =
-        let format = xpath_to_string "driver[name='qemu']/@type" "" in
+        let format = xpath_to_string "driver[@name='qemu']/@type" "" in
         if format <> "" then Some format else None in
 
       (* The <disk type='...'> attribute may be 'block', 'file' or

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list