Fix LOG_REPLACEMENTS determination when multiple domain sets exist and we are on a newer version of python

This commit is contained in:
Rudolf Mayerhofer 2023-03-28 21:48:58 +02:00 committed by Markus Hauschild
parent ba644d44f1
commit d1caaf80ef
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ def main():
# load config
runtimeconfig, domainconfigs = configuration.load()
# register idna-mapped domains as LOG_REPLACEMENTS for better readability of log output
LOG_REPLACEMENTS.update({k: "{} [{}]".format(k, v) for k, v in domainconfigs['domainlist_idna_mapped']})
for domainconfig in domainconfigs:
LOG_REPLACEMENTS.update({k: "{} [{}]".format(k, v) for k, v in domainconfig['domainlist_idna_mapped'].items()})
# Start processing
if runtimeconfig.get('mode') == 'revoke':
# Mode: revoke certificate