From 3a9769acbfcce37bbda5fbdf31b89729567ba73a Mon Sep 17 00:00:00 2001 From: Jon Walsh Date: Mon, 8 Aug 2016 15:13:23 +0700 Subject: [PATCH] Replace '-' with '_' before filtering plugin settings This bug notably occurs when renewing certs for with the plugin `letsencrypt-s3front` --- certbot/renewal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/certbot/renewal.py b/certbot/renewal.py index d0c797a08..339d7b7ff 100644 --- a/certbot/renewal.py +++ b/certbot/renewal.py @@ -143,6 +143,7 @@ def _restore_plugin_configs(config, renewalparams): if renewalparams.get("installer", None) is not None: plugin_prefixes.append(renewalparams["installer"]) for plugin_prefix in set(plugin_prefixes): + plugin_prefix = plugin_prefix.replace('-', '_') for config_item, config_value in six.iteritems(renewalparams): if config_item.startswith(plugin_prefix + "_") and not cli.set_by_cli(config_item): # Values None, True, and False need to be treated specially,