mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 20:02:16 +02:00
add apply_enhancement comment
This commit is contained in:
@@ -390,11 +390,17 @@ class Client(object):
|
|||||||
self.installer.restart()
|
self.installer.restart()
|
||||||
|
|
||||||
def apply_enhancement(self, domains, enhancement, options=None):
|
def apply_enhancement(self, domains, enhancement, options=None):
|
||||||
# TODO change comment
|
"""Applies an enhacement on all domains.
|
||||||
"""Redirect all traffic from HTTP to HTTPS
|
|
||||||
|
|
||||||
:param domains: list of ssl_vhosts
|
:param domains: list of ssl_vhosts
|
||||||
:type str
|
:type list of str
|
||||||
|
|
||||||
|
:param enhancement: name of enhancement, e.g. http-header
|
||||||
|
:type str
|
||||||
|
|
||||||
|
.. note:: when more options are need make options a list.
|
||||||
|
:param options: options to enhancement, e.g. Strict-Transport-Security
|
||||||
|
:type str
|
||||||
|
|
||||||
"""
|
"""
|
||||||
with error_handler.ErrorHandler(self.installer.recovery_routine):
|
with error_handler.ErrorHandler(self.installer.recovery_routine):
|
||||||
|
|||||||
Reference in New Issue
Block a user