summaryrefslogtreecommitdiffstats
path: root/pykolab/conf/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/conf/__init__.py')
-rw-r--r--pykolab/conf/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py
index c5ed1d5..9ea503b 100644
--- a/pykolab/conf/__init__.py
+++ b/pykolab/conf/__init__.py
@@ -505,13 +505,15 @@ class Conf(object):
return values
- def get_raw(self, section, key):
+ def get_raw(self, section, key, default=None):
if not self.cfg_parser:
self.read_config()
if self.cfg_parser.has_option(section, key):
return self.cfg_parser.get(section,key, 1)
+ return default
+
def get(self, section, key, quiet=False):
"""
Get a configuration option from our store, the configuration file,