From 0a66b07945368489c16ec023d47d7acf3a60db04 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 23 Feb 2016 17:53:50 +0100 Subject: [PATCH] Fix error if default values are empty. --- acertmgr.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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