From b1f3210a4cd3aac93b7fcbbd645ee2d6d354aba8 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 17 Sep 2015 15:51:46 +0200 Subject: [PATCH] Fix a crash at vmware stop Fix https://github.com/GNS3/gns3-gui/issues/665 --- gns3server/modules/vmware/vmware_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/vmware/vmware_vm.py b/gns3server/modules/vmware/vmware_vm.py index 203fe105..87a8fef6 100644 --- a/gns3server/modules/vmware/vmware_vm.py +++ b/gns3server/modules/vmware/vmware_vm.py @@ -469,7 +469,7 @@ class VMwareVM(BaseVM): if not self.manager.is_managed_vmnet(vmnet): continue log.debug("removing adapter {}".format(adapter_number)) - for key in self._vmx_pairs.keys(): + for key in list(self._vmx_pairs.keys()): if key.startswith("ethernet{}.".format(adapter_number)): del self._vmx_pairs[key]