From 48a73f9ab54bd6bcdcc82b20d99b4bd6558012bc Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 3 Oct 2016 21:39:43 +0200 Subject: [PATCH] Fix a rare crash in vbox Fix #710 --- gns3server/compute/virtualbox/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/virtualbox/__init__.py b/gns3server/compute/virtualbox/__init__.py index a3f68a04..2e3fb69b 100644 --- a/gns3server/compute/virtualbox/__init__.py +++ b/gns3server/compute/virtualbox/__init__.py @@ -173,7 +173,7 @@ class VirtualBox(BaseManager): if vmname == "": 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