mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
lint
This commit is contained in:
parent
c36bca765d
commit
7fa4a7a5b9
2 changed files with 3 additions and 17 deletions
|
|
@ -3,16 +3,10 @@
|
|||
import logging
|
||||
import os
|
||||
|
||||
import six
|
||||
|
||||
from acme import challenges
|
||||
|
||||
from certbot import errors
|
||||
from certbot.plugins import common
|
||||
|
||||
from certbot_nginx import obj
|
||||
from certbot_nginx import nginxparser
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -37,9 +31,6 @@ class NginxHttp01(common.ChallengePerformer):
|
|||
|
||||
"""
|
||||
|
||||
def __init__(self, configurator):
|
||||
super(NginxHttp01, self).__init__(configurator)
|
||||
|
||||
def perform(self):
|
||||
"""Perform a challenge on Nginx.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,12 +8,10 @@ import six
|
|||
from acme import challenges
|
||||
|
||||
from certbot import achallenges
|
||||
from certbot import errors
|
||||
|
||||
from certbot.plugins import common_test
|
||||
from certbot.tests import acme_util
|
||||
|
||||
from certbot_nginx import obj
|
||||
from certbot_nginx.tests import util
|
||||
|
||||
|
||||
|
|
@ -96,13 +94,10 @@ class HttpPerformTest(util.NginxTest):
|
|||
|
||||
self.http01.configurator.parser.load()
|
||||
|
||||
http = self.http01.configurator.parser.parsed[
|
||||
self.http01.configurator.parser.config_root][-1]
|
||||
# vhosts = self.http01.configurator.parser.get_vhosts()
|
||||
|
||||
vhosts = self.http01.configurator.parser.get_vhosts()
|
||||
|
||||
for vhost in vhosts:
|
||||
pass
|
||||
# for vhost in vhosts:
|
||||
# pass
|
||||
# if the name matches
|
||||
# check that the location block is in there and is correct
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue