Revision fee9556c
b/lib/config.py | ||
---|---|---|
545 | 545 |
f.close() |
546 | 546 |
# we don't need to do os.close(fd) as f.close() did it |
547 | 547 |
os.rename(name, destination) |
548 |
# re-set our cache as not to re-read the config file |
|
549 |
try: |
|
550 |
st = os.stat(destination) |
|
551 |
except OSError, err: |
|
552 |
raise errors.ConfigurationError, "Can't stat config file: %s" % err |
|
553 |
self._config_time = st.st_mtime |
|
554 |
self._config_size = st.st_size |
|
555 |
self._config_inode = st.st_ino |
|
556 |
# and redistribute the config file |
|
548 | 557 |
self._DistributeConfig() |
549 | 558 |
|
550 | 559 |
def InitConfig(self, node, primary_ip, secondary_ip, |
Also available in: Unified diff