summaryrefslogtreecommitdiff
path: root/server/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-02-12 20:33:48 +0100
committerKali Kaneko <kali@leap.se>2017-02-12 20:33:48 +0100
commit6cabe46e4671627c22d5eed9ebb3bdc751948414 (patch)
treeebb2ffd5ba2a28d48683d909fec522a21dffd8fa /server/src/leap
parent05b604a7134866c23aa98069cfc8542feaa08404 (diff)
[refactor] update create-user-db script to use config refactor
Diffstat (limited to 'server/src/leap')
-rw-r--r--server/src/leap/soledad/server/_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/leap/soledad/server/_config.py b/server/src/leap/soledad/server/_config.py
index 2c7f530d..1818c38d 100644
--- a/server/src/leap/soledad/server/_config.py
+++ b/server/src/leap/soledad/server/_config.py
@@ -42,11 +42,11 @@ CONFIG_DEFAULTS = {
_config = None
-def get_config():
+def get_config(section='soledad-server'):
global _config
if not _config:
_config = _load_config('/etc/soledad/soledad-server.conf')
- return _config['soledad-server']
+ return _config[section]
def _load_config(file_path):