mirror of
https://github.com/certbot/certbot.git
synced 2026-03-01 21:00:31 -05:00
dissect namespace config in enhance_config
This commit is contained in:
parent
17ef874c04
commit
e787147eea
1 changed files with 7 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ class Client(object):
|
|||
logger.critical("Rollback successful; your server has "
|
||||
"been restarted with your old configuration")
|
||||
|
||||
def enhance_config(self, domains, redirect=None):
|
||||
def enhance_config(self, domains, config=None):
|
||||
"""Enhance the configuration.
|
||||
|
||||
.. 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
|
||||
|
||||
: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.
|
||||
:type redirect: bool or None
|
||||
|
||||
|
|
@ -371,7 +376,7 @@ class Client(object):
|
|||
"configuration to enhance.")
|
||||
raise errors.Error("No installer available")
|
||||
|
||||
if redirect is None:
|
||||
if config.redirect is None:
|
||||
redirect = enhancements.ask("redirect")
|
||||
|
||||
# When support for more enhancements are added, the call to the
|
||||
|
|
|
|||
Loading…
Reference in a new issue