mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Notif forwarded from hypervisor to controller
This commit is contained in:
8 files changed
+174
-46
No files matched your search
@@ -218,6 +218,7 @@ class BaseVM:
|
||||
log.info("{module}: {name} [{id}] created".format(module=self.manager.module_name,
|
||||
name=self.name,
|
||||
id=self.id))
|
||||
self._project.emit("vm.created", self)
|
||||
|
||||
@asyncio.coroutine
|
||||
def delete(self):
|
||||
@@ -225,6 +226,7 @@ class BaseVM:
|
||||
Delete the VM (including all its files).
|
||||
"""
|
||||
|
||||
self._project.emit("vm.deleted", self)
|
||||
directory = self.project.vm_working_directory(self)
|
||||
if os.path.exists(directory):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user