Shahar Havivi has uploaded a new change for review. Change subject: v2v: get_external_vms return format for KVM images ......................................................................
v2v: get_external_vms return format for KVM images Change-Id: I4d4985aafc21e5ff5c11ec7bca71ab9aa5b2cd9d Signed-off-by: Shahar Havivi <shah...@redhat.com> --- M lib/vdsm/v2v.py 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/12/56912/1 diff --git a/lib/vdsm/v2v.py b/lib/vdsm/v2v.py index fbc07df..e52af39 100644 --- a/lib/vdsm/v2v.py +++ b/lib/vdsm/v2v.py @@ -932,6 +932,11 @@ source = disk.find('./source/[@file]') if source is not None: d['alias'] = source.get('file') + driver = disk.find('./driver/[@type]') + if driver is not None: + format = driver.get('type') + if format.lower().startswith('qcow'): + d['format'] = 'cow' params['disks'].append(d) -- To view, visit https://gerrit.ovirt.org/56912 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4d4985aafc21e5ff5c11ec7bca71ab9aa5b2cd9d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Shahar Havivi <shav...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches