mirror of
https://github.com/moepman/acertmgr.git
synced 2025-01-06 06:05:23 +01:00
Fix error if default values are empty.
This commit is contained in:
parent
7b9cb55bc1
commit
0a66b07945
@ -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