From 786159110edd2ce39bd5c1c9e5b647cc3a23e249 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 24 Oct 2016 15:24:45 +0200 Subject: [PATCH] Fix conflict issue between the GNS3VM and a remote server --- gns3server/controller/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 12c318a0a..f4ed82d54 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -241,6 +241,11 @@ class Controller: if (compute_id == 'local' or compute_id == 'vm') and not force: return None + # It seem we have error with a gns3vm imported as a remote server and conflict + # with GNS3 VM settings. That's why we ignore server name gns3vm + if name == 'gns3vm': + return None + for compute in self._computes.values(): if name and compute.name == name: raise aiohttp.web.HTTPConflict(text='Compute name "{}" already exists'.format(name))