From 997f7cbd6ffa97c2ec698aa81c32314e72b2247c Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 15 Apr 2015 15:40:07 +0200 Subject: [PATCH] Fix noise in logs --- gns3server/modules/vpcs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/vpcs/__init__.py b/gns3server/modules/vpcs/__init__.py index eb6cbe11..6c577bef 100644 --- a/gns3server/modules/vpcs/__init__.py +++ b/gns3server/modules/vpcs/__init__.py @@ -62,9 +62,9 @@ class VPCS(BaseManager): """ vm = self.get_vm(vm_id) - i = self._used_mac_ids[vm_id] - self._free_mac_ids[vm.project.id].insert(0, i) if vm_id in self._used_mac_ids: + i = self._used_mac_ids[vm_id] + self._free_mac_ids[vm.project.id].insert(0, i) del self._used_mac_ids[vm_id] yield from super().close_vm(vm_id, *args, **kwargs) return vm