mirror of
https://github.com/moepman/acertmgr.git
synced 2024-12-29 12:31:52 +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:
parent
ba644d44f1
commit
d1caaf80ef
@ -140,7 +140,8 @@ def main():
|
|||||||
# load config
|
# load config
|
||||||
runtimeconfig, domainconfigs = configuration.load()
|
runtimeconfig, domainconfigs = configuration.load()
|
||||||
# register idna-mapped domains as LOG_REPLACEMENTS for better readability of log output
|
# 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
|
# Start processing
|
||||||
if runtimeconfig.get('mode') == 'revoke':
|
if runtimeconfig.get('mode') == 'revoke':
|
||||||
# Mode: revoke certificate
|
# Mode: revoke certificate
|
||||||
|
Loading…
Reference in New Issue
Block a user