mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Restore device IDs and fixes race condition when converting an old project.
This commit is contained in:
1 parent
5ae8728ee6
commit
7223005acd
3 files changed
+23
-19
No files matched your search
@@ -209,6 +209,10 @@ class Dynamips(BaseManager):
|
||||
"""
|
||||
|
||||
project = ProjectManager.instance().get_project(project_id)
|
||||
if device_id and isinstance(device_id, int):
|
||||
with (yield from BaseManager._convert_lock):
|
||||
device_id = yield from self.convert_old_project(project, device_id, name)
|
||||
|
||||
if not device_id:
|
||||
device_id = str(uuid4())
|
||||
|
||||
|
||||
Reference in new issue
Block a user