EOX GitLab Instance

Skip to content
Snippets Groups Projects

Registration routes

Merged Fabian Schindler-Strauss requested to merge routes into main
2 unresolved threads
Files
2
+ 6
2
@@ -61,7 +61,7 @@ def setup_logging(debug=False):
@click.group()
@click.option("--config-file", type=click.File("r"))
@click.option("--config-file", type=click.Path(exists=True))
@click.option("--validate", is_flag=True)
@click.option("--host", type=str)
@click.option("--port", type=int)
@@ -77,7 +77,11 @@ def cli(
# ensure that ctx.obj exists and is a dict (in case `cli()` is called
# by means other than the `if` block below)
config = RegistrarConfig.from_file(config_file, validate)
if not config_file:
raise ValueError("Missing --config-file parameter")
with open(config_file, encoding="utf-8") as config_file_:
config = RegistrarConfig.from_file(config_file_, validate)
if host:
config.redis_host = host
if port:
Loading