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
1 changed files with 4 additions and 3 deletions

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