1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-12 19:38:57 +00:00

Duplicate project on remote server use UUID

Ref https://github.com/GNS3/gns3-server/issues/1040
This commit is contained in:
Julien Duponchelle 2017-05-23 17:20:51 +02:00
parent 5a86277a9f
commit 39879ca92b
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,6 @@ import asyncio
import zipfile
import aiohttp
from ..config import Config
from .topology import load_topology
@ -74,7 +73,7 @@ def import_project(controller, project_id, stream, location=None, name=None, kee
path = location
else:
projects_path = controller.projects_directory()
path = os.path.join(projects_path, project_name)
path = os.path.join(projects_path, project_id)
try:
os.makedirs(path, exist_ok=True)
except UnicodeEncodeError as e:

View File

@ -23,7 +23,6 @@ import tempfile
from gns3server.web.route import Route
from gns3server.controller import Controller
from gns3server.controller.project import Project
from gns3server.controller.import_project import import_project
from gns3server.controller.export_project import export_project
from gns3server.config import Config