1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Fix a rare crash in vbox

Fix #710
This commit is contained in:
Julien Duponchelle 2016-10-03 21:39:43 +02:00
parent 780086cd5b
commit 48a73f9ab5
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -173,7 +173,7 @@ class VirtualBox(BaseManager):
if vmname == "<inaccessible>":
continue # ignore inaccessible VMs
extra_data = yield from self.execute("getextradata", [vmname, "GNS3/Clone"])
if not extra_data[0].strip() == "Value: yes":
if len(extra_data) == 0 or not extra_data[0].strip() == "Value: yes":
# get the amount of RAM
info_results = yield from self.execute("showvminfo", [vmname, "--machinereadable"])
ram = 0