mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
Fix rare crash in tests for travis and fix coverage
This commit is contained in:
parent
da00aa030a
commit
420a1c2da2
@ -29,4 +29,4 @@ notifications:
|
||||
# on_failure: always
|
||||
|
||||
after_success:
|
||||
- coveralls
|
||||
- coveralls --base_dir gns3server
|
||||
|
@ -52,7 +52,8 @@ 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)
|
||||
del self._used_mac_ids[vm_id]
|
||||
if vm_id in self._used_mac_ids:
|
||||
del self._used_mac_ids[vm_id]
|
||||
yield from super().close_vm(vm_id, *args, **kwargs)
|
||||
return vm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user