diff --git a/certbot-nginx/certbot_nginx/http_01.py b/certbot-nginx/certbot_nginx/http_01.py index 82acdfbe8..7cbd239cc 100644 --- a/certbot-nginx/certbot_nginx/http_01.py +++ b/certbot-nginx/certbot_nginx/http_01.py @@ -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. diff --git a/certbot-nginx/certbot_nginx/tests/http_01_test.py b/certbot-nginx/certbot_nginx/tests/http_01_test.py index e8a94188f..9da57d896 100644 --- a/certbot-nginx/certbot_nginx/tests/http_01_test.py +++ b/certbot-nginx/certbot_nginx/tests/http_01_test.py @@ -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