mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
satisfy lint
This commit is contained in:
@@ -22,20 +22,21 @@ class Authenticator(common.Plugin):
|
|||||||
|
|
||||||
description = "SimpleFS Authenticator"
|
description = "SimpleFS Authenticator"
|
||||||
|
|
||||||
def more_info(self): # pylint: disable=missing-docstring,no-self-use
|
MORE_INFO = """\
|
||||||
return """\
|
|
||||||
Authenticator plugin that performs SimpleHTTP challenge by saving
|
Authenticator plugin that performs SimpleHTTP challenge by saving
|
||||||
necessary validation resources to appropriate paths on the file
|
necessary validation resources to appropriate paths on the file
|
||||||
system. It expects that there is some other HTTP server configured
|
system. It expects that there is some other HTTP server configured
|
||||||
to serve all files under specified web root ({0}).""".format(
|
to serve all files under specified web root ({0})."""
|
||||||
self.option_name("root"))
|
|
||||||
|
def more_info(self): # pylint: disable=missing-docstring,no-self-use
|
||||||
|
return self.MORE_INFO.format(self.conf("root"))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def add_parser_arguments(cls, add):
|
def add_parser_arguments(cls, add):
|
||||||
add("root", help="public_html / webroot path")
|
add("root", help="public_html / webroot path")
|
||||||
|
|
||||||
def get_chall_pref(self, domain):
|
def get_chall_pref(self, domain):
|
||||||
# pylint: disable=missing-docstring,no-self-use
|
# pylint: disable=missing-docstring,no-self-use,unused-argument
|
||||||
return [challenges.SimpleHTTP]
|
return [challenges.SimpleHTTP]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
@@ -74,7 +75,7 @@ to serve all files under specified web root ({0}).""".format(
|
|||||||
validation_file.write(validation.json_dumps())
|
validation_file.write(validation.json_dumps())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def cleanup(self, achalls):
|
def cleanup(self, achalls): # pylint: disable=missing-docstring
|
||||||
for achall in achalls:
|
for achall in achalls:
|
||||||
path = self._path_for_achall(achall)
|
path = self._path_for_achall(achall)
|
||||||
logger.debug("Removing %s", path)
|
logger.debug("Removing %s", path)
|
||||||
|
|||||||
Reference in New Issue
Block a user