mirror of
https://github.com/certbot/certbot.git
synced 2026-01-27 19:42:53 +03:00
Replace '-' with '_' before filtering plugin settings
This bug notably occurs when renewing certs for with the plugin `letsencrypt-s3front`
This commit is contained in:
committed by
Peter Eckersley
parent
d05f53bd53
commit
3a9769acbf
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user