summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorPaul Boddie <paul@boddie.org.uk>2014-02-16 02:31:25 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-16 02:31:25 +0100
commit7fd271c1869c79a2899cc7ac5ccc913033df3aa3 (patch)
treea4f7f43d17f1748bdc9229657d074e6e374cf7a7 /pykolab
parent56efaa5767732f5c3bb20458d14c6a7fb042ace9 (diff)
downloadpykolab-7fd271c1869c79a2899cc7ac5ccc913033df3aa3.tar.gz
Added missing initialisation operations.
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/conf/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py
index 239c0dd..675944a 100644
--- a/pykolab/conf/__init__.py
+++ b/pykolab/conf/__init__.py
@@ -446,11 +446,15 @@ class Conf(object):
setattr(self,option,self.cli_parser.defaults[option])
def has_section(self, section):
- self.read_config()
+ if not self.cfg_parser:
+ self.read_config()
return self.cfg_parser.has_section(section)
def has_option(self, section, option):
+ if not self.cfg_parser:
+ self.read_config()
+
return self.cfg_parser.has_option(section, option)
def get_list(self, section, key):