mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
parent
1d5029e4e2
commit
84a6ed7684
@ -196,14 +196,17 @@ class Controller:
|
|||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
server_settings = data.get("Servers", {})
|
server_settings = data.get("Servers", {})
|
||||||
for remote in server_settings.get("remote_servers", []):
|
for remote in server_settings.get("remote_servers", []):
|
||||||
yield from self.add_compute(
|
try:
|
||||||
host=remote.get("host", "localhost"),
|
yield from self.add_compute(
|
||||||
port=remote.get("port", 3080),
|
host=remote.get("host", "localhost"),
|
||||||
protocol=remote.get("protocol", "http"),
|
port=remote.get("port", 3080),
|
||||||
name=remote.get("url"),
|
protocol=remote.get("protocol", "http"),
|
||||||
user=remote.get("user"),
|
name=remote.get("url"),
|
||||||
password=remote.get("password")
|
user=remote.get("user"),
|
||||||
)
|
password=remote.get("password")
|
||||||
|
)
|
||||||
|
except aiohttp.web.HTTPConflict:
|
||||||
|
pass # if the server is broken we skip it
|
||||||
if "vm" in server_settings:
|
if "vm" in server_settings:
|
||||||
vmname = None
|
vmname = None
|
||||||
vm_settings = server_settings["vm"]
|
vm_settings = server_settings["vm"]
|
||||||
|
Loading…
Reference in New Issue
Block a user