mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-02 11:21:10 +00:00
Fix conflict issue between the GNS3VM and a remote server
This commit is contained in:
parent
b9e7ccc14f
commit
786159110e
@ -241,6 +241,11 @@ class Controller:
|
|||||||
if (compute_id == 'local' or compute_id == 'vm') and not force:
|
if (compute_id == 'local' or compute_id == 'vm') and not force:
|
||||||
return None
|
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():
|
for compute in self._computes.values():
|
||||||
if name and compute.name == name:
|
if name and compute.name == name:
|
||||||
raise aiohttp.web.HTTPConflict(text='Compute name "{}" already exists'.format(name))
|
raise aiohttp.web.HTTPConflict(text='Compute name "{}" already exists'.format(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user