Traefik config files are .toml

This commit is contained in:
GeorgianaElena
2020-06-02 19:09:19 +03:00
parent 8c14372356
commit acc1eea251
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ def test_extra_config(tmpdir, tljh_dir):
"checkNewVersion": False
}
with open(os.path.join(extra_config_dir, "extra.py"), "w+") as extra_config_file:
with open(os.path.join(extra_config_dir, "extra.toml"), "w+") as extra_config_file:
toml.dump(extra_config, extra_config_file)
# This merges the 2 configs

View File

@@ -81,7 +81,7 @@ def compute_basic_auth(username, password):
return username + ":" + hashed_password
def load_extra_config(std_toml, extra_config_dir):
extra_configs = sorted(glob(os.path.join(extra_config_dir, '*.py')))
extra_configs = sorted(glob(os.path.join(extra_config_dir, '*.toml')))
# Load the toml list of files into dicts and merge them
config = toml.load([std_toml] + extra_configs)
return config