mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-21 00:22:56 +00:00
Suspend and resume for VirtualBox.
This commit is contained in:
@ -75,14 +75,12 @@ class Project:
|
||||
:param vm_uuid: VM UUID
|
||||
"""
|
||||
|
||||
p = os.path.join(self._path, module, vm_uuid)
|
||||
workdir = os.path.join(self._path, module, vm_uuid)
|
||||
try:
|
||||
os.makedirs(p, exist_ok=True)
|
||||
except FileExistsError:
|
||||
pass
|
||||
os.makedirs(workdir, exist_ok=True)
|
||||
except OSError as e:
|
||||
raise aiohttp.web.HTTPInternalServerError(text="Could not create VM working directory: {}".format(e))
|
||||
return p
|
||||
return workdir
|
||||
|
||||
def __json__(self):
|
||||
|
||||
|
Reference in New Issue
Block a user