mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Ignore VirtualBox VM Name with a carriage return in name
Add tests for get_list of VirtualBox Fix #200
This commit is contained in:
1 parent
ea67f4aeb9
commit
ecf4e91e55
2 files changed
+35
-1
No files matched your search
@@ -168,6 +168,8 @@ class VirtualBox(BaseManager):
|
||||
vms = []
|
||||
result = yield from self.execute("list", ["vms"])
|
||||
for line in result:
|
||||
if line[0] != '"' or line[-1:] != "}":
|
||||
continue # Broken output (perhaps a carriage return in VM name
|
||||
vmname, _ = line.rsplit(' ', 1)
|
||||
vmname = vmname.strip('"')
|
||||
if vmname == "<inaccessible>":
|
||||
|
||||
Reference in new issue
Block a user