[Bug 385410] Re: vmware2libvirt fails when converting vmx file created under windows

Petter Reinholdtsen pere at hungry.com
Wed Feb 17 10:22:05 UTC 2010


I ran into this problem too, and can confirm that the fix from Jamin W.
Collins work.

Here is the diff.

--- /tmp/vmware2libvirt 2010-02-17 11:21:15.000000000 +0100
+++ /usr/bin/vmware2libvirt     2010-02-17 11:21:31.000000000 +0100
@@ -62,7 +62,7 @@
     for line in vmx:
         if pat.search(line):
             # extract value without quotes
-            value = pat.sub('', line)[1:-2]
+            value = pat.sub( '', line.replace("\r",""))[1:-2]

     if value == "":
         raise V2LError("Bad value for '" + key + "'")

-- 
vmware2libvirt fails when converting vmx file created under windows
https://bugs.launchpad.net/bugs/385410
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list