Fix conflict issue between the GNS3VM and a remote server

This commit is contained in:
Julien Duponchelle 2016-10-24 15:24:45 +02:00
parent b9e7ccc14f
commit 786159110e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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))