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

Do not crash at startup if local server as the same name as remote server

Fix #910
This commit is contained in:
Julien Duponchelle 2017-02-23 14:34:21 +01:00
parent 30db4d8b5c
commit 8aca3c7b99
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -254,7 +254,7 @@ class Controller:
return None
for compute in self._computes.values():
if name and compute.name == name:
if name and compute.name == name and not force:
raise aiohttp.web.HTTPConflict(text='Compute name "{}" already exists'.format(name))
compute = Compute(compute_id=compute_id, controller=self, name=name, **kwargs)