mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 22:52:25 +00:00
Take VMware file encoding into account. Fixes #261.
This commit is contained in:
parent
9e2a22fc8e
commit
e785baaa29
@ -164,7 +164,7 @@ class VirtualBox(BaseManager):
|
|||||||
result = yield from self.execute("list", ["vms"])
|
result = yield from self.execute("list", ["vms"])
|
||||||
for line in result:
|
for line in result:
|
||||||
if len(line) == 0 or line[0] != '"' or line[-1:] != "}":
|
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, _ = line.rsplit(' ', 1)
|
||||||
vmname = vmname.strip('"')
|
vmname = vmname.strip('"')
|
||||||
if vmname == "<inaccessible>":
|
if vmname == "<inaccessible>":
|
||||||
|
Loading…
Reference in New Issue
Block a user