diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2011-02-13 02:01:30 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2011-02-13 14:39:49 -0800 |
commit | 76cbd26728a491fef0c7e2d657a931910ba3f8d1 (patch) | |
tree | 780b3a8ef69a3da9b5ddf5cc76cbf2fd11b549c1 /xlators | |
parent | 38ae1720be39b62a4f199aa5be4ac85948bc23f0 (diff) |
syncdaemon: conf file to be read properly
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/configinterface.py | 7 |
1 files changed, 5 insertions, 2 deletions
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) |