From 8aca3c7b99ea51aa9e76de5a45885ac0591391bf Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 23 Feb 2017 14:34:21 +0100 Subject: [PATCH] Do not crash at startup if local server as the same name as remote server Fix #910 --- gns3server/controller/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index d0726713..e159b1ac 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -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)