mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
dissect namespace config in enhance_config
This commit is contained in:
@@ -350,7 +350,7 @@ class Client(object):
|
|||||||
logger.critical("Rollback successful; your server has "
|
logger.critical("Rollback successful; your server has "
|
||||||
"been restarted with your old configuration")
|
"been restarted with your old configuration")
|
||||||
|
|
||||||
def enhance_config(self, domains, redirect=None):
|
def enhance_config(self, domains, config=None):
|
||||||
"""Enhance the configuration.
|
"""Enhance the configuration.
|
||||||
|
|
||||||
.. todo:: This needs to handle the specific enhancements offered by the
|
.. todo:: This needs to handle the specific enhancements offered by the
|
||||||
@@ -359,6 +359,11 @@ class Client(object):
|
|||||||
|
|
||||||
:param list domains: list of domains to configure
|
:param list domains: list of domains to configure
|
||||||
|
|
||||||
|
:ivar namespace: Namespace typically produced by
|
||||||
|
:meth:`argparse.ArgumentParser.parse_args`.
|
||||||
|
:type namespace: :class:`argparse.Namespace`
|
||||||
|
|
||||||
|
|
||||||
:param redirect: If traffic should be forwarded from HTTP to HTTPS.
|
:param redirect: If traffic should be forwarded from HTTP to HTTPS.
|
||||||
:type redirect: bool or None
|
:type redirect: bool or None
|
||||||
|
|
||||||
@@ -371,7 +376,7 @@ class Client(object):
|
|||||||
"configuration to enhance.")
|
"configuration to enhance.")
|
||||||
raise errors.Error("No installer available")
|
raise errors.Error("No installer available")
|
||||||
|
|
||||||
if redirect is None:
|
if config.redirect is None:
|
||||||
redirect = enhancements.ask("redirect")
|
redirect = enhancements.ask("redirect")
|
||||||
|
|
||||||
# When support for more enhancements are added, the call to the
|
# When support for more enhancements are added, the call to the
|
||||||
|
|||||||
Reference in New Issue
Block a user