From ed2da47115fa9394357fd290894d1a1efc2ad750 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Thu, 7 Nov 2013 12:52:23 +0530 Subject: geo-rep: get new config value after config value reset When config.read is called it preserves the previous values from the the previously opened config file. For example import ConfigParser config = ConfigParser.RawConfigParser() config.read("defaults.conf") config.read("preferences.conf") When change in config file is identified it will open new instance of config to avoid getting old config values. Change-Id: Iec677e61ebd2c59c95aea94481f569d78bd913e4 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/6747 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- geo-replication/syncdaemon/configinterface.py | 1 + 1 file changed, 1 insertion(+) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/configinterface.py b/geo-replication/syncdaemon/configinterface.py index 0f764c47a..8353c1161 100644 --- a/geo-replication/syncdaemon/configinterface.py +++ b/geo-replication/syncdaemon/configinterface.py @@ -82,6 +82,7 @@ class GConffile(object): if sys.exc_info()[1].errno == errno.ENOENT: sres = None + self.config = ConfigParser.RawConfigParser() self.config.read(self.path) self._normconfig() -- cgit