Shahar Havivi has uploaded a new change for review.

Change subject: v2v: Support for ova exported from AWS
......................................................................

v2v: Support for ova exported from AWS

When exporting VM from AWS as VMWare OVA file it doesn't export <Name>
tag for the VM.
The Name is not Mandatory for the ovf format - using default as a name
AWS the name tag is not mandatory - using default as a name.

The Name is not relevant from the engine point of view since the user
can change it while importing the OVA.

Change-Id: Id6215491cb724c2131d440b00e767a5690070a7b
Bug-Url: https://bugzilla.redhat.com/1371843
Signed-off-by: Shahar Havivi <shah...@redhat.com>
---
M lib/vdsm/v2v.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/17/63517/1

diff --git a/lib/vdsm/v2v.py b/lib/vdsm/v2v.py
index 4c052da..b6453fc 100644
--- a/lib/vdsm/v2v.py
+++ b/lib/vdsm/v2v.py
@@ -1188,7 +1188,7 @@
     if vmName is not None:
         vm['vmName'] = vmName.text
     else:
-        raise V2VError('Error parsing ovf information: no ovf:Name')
+        vm['vmName'] = 'default'
 
     memSize = node.find('.//ovf:Item[rasd:ResourceType="%d"]/'
                         'rasd:VirtualQuantity' % _OVF_RESOURCE_MEMORY, ns)


-- 
To view, visit https://gerrit.ovirt.org/63517
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6215491cb724c2131d440b00e767a5690070a7b
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/admin/lists/vdsm-patches@lists.fedorahosted.org

Reply via email to