diff options
author | drebs <drebs@leap.se> | 2013-02-19 20:33:04 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-02-19 20:33:04 -0300 |
commit | 8b4b10b273877e9c41a1638c789aafde5ebebedf (patch) | |
tree | e573eb30b8a642159d54460c756f3c79b77cdf49 /__init__.py | |
parent | 92bd7132c22b422039d2c1cfac42bec30e317d5d (diff) |
Add ability on server to read configuration from file.
Diffstat (limited to '__init__.py')
-rw-r--r-- | __init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/__init__.py b/__init__.py index bc8ef5b4..cf9326ca 100644 --- a/__init__.py +++ b/__init__.py @@ -74,10 +74,10 @@ class Soledad(object): # get config from file config = configparser.ConfigParser() config.read(self.config_file) - if 'soledad-server' in config: + if 'soledad-client' in config: for key in default_conf: - if key in config['soledad-server']: - setattr(self, key, config['soledad-server'][key]) + if key in config['soledad-client']: + setattr(self, key, config['soledad-client'][key]) def _init_dirs(self): if not os.path.isdir(self.prefix): |