Take VMware file encoding into account. Fixes #261.

This commit is contained in:
Jeremy 2015-07-12 19:03:15 -06:00
parent 9e2a22fc8e
commit e785baaa29

View File

@ -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 == "<inaccessible>":