1
0
mirror of https://github.com/moepman/acertmgr.git synced 2024-12-27 11:51:50 +01:00

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

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