mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
Fix a crash in CI, making log impossible to read
This commit is contained in:
parent
879ed9e4e6
commit
64152c1af8
@ -49,9 +49,10 @@ class IOU(BaseManager):
|
|||||||
def close_vm(self, vm_id, *args, **kwargs):
|
def close_vm(self, vm_id, *args, **kwargs):
|
||||||
|
|
||||||
vm = self.get_vm(vm_id)
|
vm = self.get_vm(vm_id)
|
||||||
i = self._used_application_ids[vm_id]
|
if vm_id in self._used_application_ids:
|
||||||
self._free_application_ids.insert(0, i)
|
i = self._used_application_ids[vm_id]
|
||||||
del self._used_application_ids[vm_id]
|
self._free_application_ids.insert(0, i)
|
||||||
|
del self._used_application_ids[vm_id]
|
||||||
yield from super().close_vm(vm_id, *args, **kwargs)
|
yield from super().close_vm(vm_id, *args, **kwargs)
|
||||||
return vm
|
return vm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user