Blob Blame History Raw
# HG changeset patch
# User Alban Browaeys <prahal@yahoo.com>
# Date 1249497422 14400
# Node ID 0d3cdc5ff5d091dd73d3ef0fe21123fb63b4d7a0
# Parent  07d296ecfbeb3c42e4db0efbeb03a9d8c4cac501
Set proper driver type from storage volume xml.

Fixes possible traceback if creating a qemu VM from a storage volume.

diff -r 07d296ecfbeb -r 0d3cdc5ff5d0 AUTHORS
--- a/AUTHORS	Wed Aug 05 14:32:40 2009 -0400
+++ b/AUTHORS	Wed Aug 05 14:37:02 2009 -0400
@@ -42,6 +42,7 @@
    Laurent LĂ©onard <laurent-at-open-minds-dot-org>
    Christophe Sauthier <christophe-dot-sauthier-at-objectif-libre-dot-com>
    Michal Novotny <minovotn-at-redhat-dot-com>
+   Alban Browaeys <prahal-at-yahoo-dot-com>
 
    ...send patches and get your name here...
 
diff -r 07d296ecfbeb -r 0d3cdc5ff5d0 virtinst/VirtualDisk.py
--- a/virtinst/VirtualDisk.py	Wed Aug 05 14:32:40 2009 -0400
+++ b/virtinst/VirtualDisk.py	Wed Aug 05 14:37:02 2009 -0400
@@ -470,7 +470,7 @@
 
         if self.vol_object:
             drvtype = _util.get_xml_path(self.vol_object.XMLDesc(0),
-                                         "/volume/target/format")
+                                         "/volume/target/format/@type")
 
         elif self.vol_install:
             if drvname == self.DRIVER_QEMU: