Restore device IDs and fixes race condition when converting an old project.

This commit is contained in:
grossmj committed 2015-03-01 13:05:51 -07:00
1 parent 5ae8728ee6
commit 7223005acd
3 files changed
+23 -19

No files matched your search

+4
View File
@@ -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())