mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Flag --local
This commit is contained in:
1 parent
8e249b670d
commit
59f940625a
2 files changed
+32
No files matched your search
@@ -23,6 +23,10 @@ from uuid import UUID, uuid4
|
||||
from ..config import Config
|
||||
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Project:
|
||||
"""
|
||||
A project contains a list of VM.
|
||||
@@ -60,6 +64,7 @@ class Project:
|
||||
os.makedirs(os.path.join(self._path, "vms"), exist_ok=True)
|
||||
except OSError as e:
|
||||
raise aiohttp.web.HTTPInternalServerError(text="Could not create project directory: {}".format(e))
|
||||
log.debug("Create project {uuid} in directory {path}".format(path=self._path, uuid=self._uuid))
|
||||
|
||||
def _get_default_project_directory(self):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user