summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-19 20:33:04 -0300
committerdrebs <drebs@leap.se>2013-02-19 20:33:04 -0300
commit8b4b10b273877e9c41a1638c789aafde5ebebedf (patch)
treee573eb30b8a642159d54460c756f3c79b77cdf49 /__init__.py
parent92bd7132c22b422039d2c1cfac42bec30e317d5d (diff)
Add ability on server to read configuration from file.
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py6
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):