mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Unload should not delete VMs, just close them.
This commit is contained in:
1 parent
6e7a5ca8bd
commit
bc3d63081b
4 files changed
+53
-51
No files matched your search
@@ -97,9 +97,9 @@ class BaseManager:
|
||||
@asyncio.coroutine
|
||||
def unload(self):
|
||||
|
||||
for uuid in list(self._vms.keys()):
|
||||
for uuid in self._vms.keys():
|
||||
try:
|
||||
yield from self.delete_vm(uuid)
|
||||
yield from self.close_vm(uuid)
|
||||
except Exception as e:
|
||||
log.warn("Could not delete VM {}: {}".format(uuid, e))
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user