mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -254,5 +254,5 @@ def test_listen_address(tmpdir, tljh_dir):
|
|||||||
traefik.ensure_traefik_config(str(state_dir))
|
traefik.ensure_traefik_config(str(state_dir))
|
||||||
|
|
||||||
cfg = _read_static_config(state_dir)
|
cfg = _read_static_config(state_dir)
|
||||||
assert cfg["entryPoints"]['http']['address'] == "127.0.0.1:80"
|
assert cfg["entryPoints"]["http"]["address"] == "127.0.0.1:80"
|
||||||
assert cfg["entryPoints"]['https']['address'] == "127.0.0.1:443"
|
assert cfg["entryPoints"]["https"]["address"] == "127.0.0.1:443"
|
||||||
|
|||||||
@@ -248,8 +248,8 @@ def check_hub_ready():
|
|||||||
http_port = load_config()["http"]["port"]
|
http_port = load_config()["http"]["port"]
|
||||||
# The default config is an empty address, so it binds on all interfaces.
|
# The default config is an empty address, so it binds on all interfaces.
|
||||||
# Test the connectivity on the local address.
|
# Test the connectivity on the local address.
|
||||||
if http_address == '':
|
if http_address == "":
|
||||||
http_address = '127.0.0.1'
|
http_address = "127.0.0.1"
|
||||||
try:
|
try:
|
||||||
r = requests.get(
|
r = requests.get(
|
||||||
"http://%s:%d%s/hub/api" % (http_address, http_port, base_url), verify=False
|
"http://%s:%d%s/hub/api" % (http_address, http_port, base_url), verify=False
|
||||||
|
|||||||
Reference in New Issue
Block a user