[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-25 12:56:21 +00:00
parent d637325152
commit 0f385af837
2 changed files with 4 additions and 4 deletions

View File

@@ -254,5 +254,5 @@ def test_listen_address(tmpdir, tljh_dir):
traefik.ensure_traefik_config(str(state_dir))
cfg = _read_static_config(state_dir)
assert cfg["entryPoints"]['http']['address'] == "127.0.0.1:80"
assert cfg["entryPoints"]['https']['address'] == "127.0.0.1:443"
assert cfg["entryPoints"]["http"]["address"] == "127.0.0.1:80"
assert cfg["entryPoints"]["https"]["address"] == "127.0.0.1:443"

View File

@@ -248,8 +248,8 @@ def check_hub_ready():
http_port = load_config()["http"]["port"]
# The default config is an empty address, so it binds on all interfaces.
# Test the connectivity on the local address.
if http_address == '':
http_address = '127.0.0.1'
if http_address == "":
http_address = "127.0.0.1"
try:
r = requests.get(
"http://%s:%d%s/hub/api" % (http_address, http_port, base_url), verify=False