From 0f385af837ab56632bfb45622b5df5efac8ec6f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 25 May 2023 12:56:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_traefik.py | 4 ++-- tljh/config.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_traefik.py b/tests/test_traefik.py index cd7d251..f950266 100644 --- a/tests/test_traefik.py +++ b/tests/test_traefik.py @@ -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" diff --git a/tljh/config.py b/tljh/config.py index 0bb3921..d308e9e 100644 --- a/tljh/config.py +++ b/tljh/config.py @@ -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