Fix a rare crash in vbox

Fix #710
This commit is contained in:
Julien Duponchelle committed 2016-10-03 21:39:43 +02:00
1 parent 780086cd5b
commit 48a73f9ab5
1 file changed
+1 -1
+1 -1
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