1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-07-12 17:48:20 +00:00

Fix a crash when in some cases you can't access to VBOX state

Fix #137
This commit is contained in:
Julien Duponchelle 2015-04-14 14:35:48 +02:00
parent 45ca995dea
commit 55fed02299

View File

@ -105,6 +105,7 @@ class VirtualBoxVM(BaseVM):
results = yield from self.manager.execute("showvminfo", [self._vmname, "--machinereadable"])
for info in results:
if '=' in info:
name, value = info.split('=', 1)
if name == "VMState":
return value.strip('"')