mirror of
https://github.com/moepman/acertmgr.git
synced 2025-01-01 03:21: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
|
# @param defaults the default configuration
|
||||||
# @return the augmented configuration
|
# @return the augmented configuration
|
||||||
def complete_config(domainconfig, defaults):
|
def complete_config(domainconfig, defaults):
|
||||||
for name, value in defaults.items():
|
if defaults:
|
||||||
if name not in domainconfig:
|
for name, value in defaults.items():
|
||||||
domainconfig[name] = value
|
if name not in domainconfig:
|
||||||
|
domainconfig[name] = value
|
||||||
return domainconfig
|
return domainconfig
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user