Unload should not delete VMs, just close them.

This commit is contained in:
Jeremy committed 2015-01-23 16:36:58 -07:00
1 parent 6e7a5ca8bd
commit bc3d63081b
4 files changed
+53 -51

No files matched your search

+2 -2
View File
@@ -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