1
0
mirror of https://github.com/moepman/acertmgr.git synced 2024-12-29 10:31:49 +01:00

Fix error if default values are empty.

This commit is contained in:
Markus 2016-02-23 17:53:50 +01:00
parent 23b70c798c
commit 2202fe867b

View File

@ -216,9 +216,10 @@ def cert_put(domain, settings):
# @param defaults the default configuration
# @return the augmented configuration
def complete_config(domainconfig, defaults):
for name, value in defaults.items():
if name not in domainconfig:
domainconfig[name] = value
if defaults:
for name, value in defaults.items():
if name not in domainconfig:
domainconfig[name] = value
return domainconfig