From e785baaa296d3b19d72ba72fe0e13eb77360e98a Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 12 Jul 2015 19:03:15 -0600 Subject: [PATCH] Take VMware file encoding into account. Fixes #261. --- gns3server/modules/virtualbox/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/virtualbox/__init__.py b/gns3server/modules/virtualbox/__init__.py index e5af0f69..7f9e424f 100644 --- a/gns3server/modules/virtualbox/__init__.py +++ b/gns3server/modules/virtualbox/__init__.py @@ -164,7 +164,7 @@ class VirtualBox(BaseManager): result = yield from self.execute("list", ["vms"]) for line in result: if len(line) == 0 or line[0] != '"' or line[-1:] != "}": - continue # Broken output (perhaps a carriage return in VM name + continue # Broken output (perhaps a carriage return in VM name) vmname, _ = line.rsplit(' ', 1) vmname = vmname.strip('"') if vmname == "":