core (config): fixed a bad option check

This commit is contained in:
Goffi 2014-10-16 20:10:08 +02:00
commit f14cce8a10

View file

@ -61,7 +61,7 @@ def fixConfigOption(section, option, value, silent=True):
with open(target_file, 'wb') as configfile:
config.write(configfile) # for the next time that user launches sat
if not silent:
if option in ('passphrase'): # list here the options storing a password
if option in ('passphrase',): # list here the options storing a password
value = '******'
log.warning(_("Config auto-update: %(option)s set to %(value)s in the file %(config_file)s") %
{'option': option, 'value': value, 'config_file': target_file})