changeset 1900:d1615f79dfe8

core (tools/config): fixed fixConfigOption: C.DEFAULT_CONFIG was used so the default values were written if not set in the config file used, resulting in a overriding of values set in config files of higher level (e.g. ~/.config/sat/sat.conf could override /etc/sat.conf values).
author Goffi <goffi@goffi.org>
date Wed, 09 Mar 2016 12:11:35 +0100
parents 7c97554a84d5
children faa8427dd032
files src/tools/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/tools/config.py	Wed Mar 09 12:08:31 2016 +0100
+++ b/src/tools/config.py	Wed Mar 09 12:11:35 2016 +0100
@@ -43,7 +43,7 @@
     @param value (str): the new value
     @param silent (boolean): toggle logging output (must be True when called from sat.sh)
     """
-    config = SafeConfigParser(defaults=C.DEFAULT_CONFIG)
+    config = SafeConfigParser()
     target_file = None
     for file_ in C.CONFIG_FILES[::-1]:
         # we will eventually update the existing file with the highest priority, if it's a user personal file...