Skip to content
Snippets Groups Projects
Unverified Commit b9ce53e8 authored by Jason Robinson's avatar Jason Robinson Committed by GitHub
Browse files

Fix synapse.config module "read" command (#11145)

`synapse.config.__main__` has the possibility to read a config item. This can be used to conveniently also validate the config is valid before trying to start Synapse.

 The "read" command broke in https://github.com/matrix-org/synapse/pull/10916

 as it now requires passing in "server.server_name" for example.

 Also made the read command optional so one can just call this with just the confirm file reference and get a "Config parses OK" if things are ok.

Signed-off-by: default avatarJason Robinson <jasonr@matrix.org>
Co-authored-by: default avatarBrendan Abolivier <babolivier@matrix.org>
parent b0f03aeb
Loading
Loading
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