Additional minor fixes when using 'all'
This commit is contained in:
parent
594088be69
commit
0de6a8cfaa
4
lg.py
4
lg.py
@ -318,7 +318,7 @@ def detail(hosts, proto="ipv4"):
|
|||||||
errors.append("%s: bird command failed with error, %s" % (host, "\n".join(res)))
|
errors.append("%s: bird command failed with error, %s" % (host, "\n".join(res)))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
detail[host] = {"status": res[1], "description": add_links(res[2:]).decode("utf-8")}
|
detail[host] = {"status": res[1], "description": add_links(res[2:])}
|
||||||
|
|
||||||
return render_template('detail.html', detail=detail, command=command, errors=errors)
|
return render_template('detail.html', detail=detail, command=command, errors=errors)
|
||||||
|
|
||||||
@ -717,7 +717,7 @@ def show_route(request_type, hosts, proto):
|
|||||||
errors = []
|
errors = []
|
||||||
hosts = hosts.split("+")
|
hosts = hosts.split("+")
|
||||||
if hosts == ["all"]:
|
if hosts == ["all"]:
|
||||||
hosts = app.config["PROXY"].keys()
|
hosts = list(app.config["PROXY"].keys())
|
||||||
allhosts = hosts[:]
|
allhosts = hosts[:]
|
||||||
for host in allhosts:
|
for host in allhosts:
|
||||||
ret, res = bird_command(host, proto, command)
|
ret, res = bird_command(host, proto, command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user