From 76cbd26728a491fef0c7e2d657a931910ba3f8d1 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Sun, 13 Feb 2011 02:01:30 +0000 Subject: syncdaemon: conf file to be read properly Signed-off-by: Kaushik BV Signed-off-by: Anand V. Avati BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570 --- xlators/features/marker/utils/syncdaemon/configinterface.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xlators/features') diff --git a/xlators/features/marker/utils/syncdaemon/configinterface.py b/xlators/features/marker/utils/syncdaemon/configinterface.py index 7bc1d4731a7..269bbde67fc 100644 --- a/xlators/features/marker/utils/syncdaemon/configinterface.py +++ b/xlators/features/marker/utils/syncdaemon/configinterface.py @@ -16,8 +16,11 @@ class GConffile(object): def update_to(self, dct): for sect in set([DEF_SECT, self.section]): if self.config.has_section(sect): - dct.update(self.config._sections[sect]) - + for k, v in self.config._sections[sect].iteritems(): + if k == '__name__': + continue + k = k.replace('-', '_') + dct[k] = v def get(self, opt=None): d = {} self.update_to(d) -- cgit