mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-30 21:03:49 +02:00
parent
45ca995dea
commit
55fed02299
@ -105,6 +105,7 @@ class VirtualBoxVM(BaseVM):
|
|||||||
|
|
||||||
results = yield from self.manager.execute("showvminfo", [self._vmname, "--machinereadable"])
|
results = yield from self.manager.execute("showvminfo", [self._vmname, "--machinereadable"])
|
||||||
for info in results:
|
for info in results:
|
||||||
|
if '=' in info:
|
||||||
name, value = info.split('=', 1)
|
name, value = info.split('=', 1)
|
||||||
if name == "VMState":
|
if name == "VMState":
|
||||||
return value.strip('"')
|
return value.strip('"')
|
||||||
|
Loading…
Reference in New Issue
Block a user