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:
parent
23b70c798c
commit
2202fe867b
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user