diff --git a/acertmgr.py b/acertmgr.py index b132daa..09a33f8 100755 --- a/acertmgr.py +++ b/acertmgr.py @@ -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