config: make sure to reload file after saving it

To ensure the configparser object is uptodate.
This commit is contained in:
Benjamin Renard 2023-01-09 13:27:52 +01:00
parent 135a742b6e
commit 014a0802f8

View file

@ -758,6 +758,7 @@ class Config: # pylint: disable=too-many-instance-attributes
log.exception( log.exception(
'Failed to write generated configuration file %s', filepath) 'Failed to write generated configuration file %s', filepath)
return False return False
self.load_file(filepath)
return True return True
@property @property