Skip to content
Snippets Groups Projects
Commit 4fa0f535 authored by Erik Johnston's avatar Erik Johnston
Browse files

Support reading directly from a config

parent 326121ae
No related branches found
No related tags found
No related merge requests found
......@@ -723,6 +723,9 @@ if __name__ == "__main__":
postgres_config = yaml.safe_load(args.postgres_config)
if "database" in postgres_config:
postgres_config = postgres_config["database"]
if "name" not in postgres_config:
sys.stderr.write("Malformed database config: no 'name'")
sys.exit(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment