mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 00:22:04 +02:00
fixed linting and added logger
This commit is contained in:
@@ -1271,7 +1271,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
self.config_test()
|
self.config_test()
|
||||||
logger.debug(self.aug.view_config_changes(self))
|
logger.debug(self.reverter.view_config_changes())
|
||||||
self._reload()
|
self._reload()
|
||||||
|
|
||||||
def _reload(self):
|
def _reload(self):
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
"""A class that performs TLS-SNI-01 challenges for Apache"""
|
"""A class that performs TLS-SNI-01 challenges for Apache"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import logging
|
||||||
|
|
||||||
from letsencrypt.plugins import common
|
from letsencrypt.plugins import common
|
||||||
|
|
||||||
from letsencrypt_apache import obj
|
from letsencrypt_apache import obj
|
||||||
from letsencrypt_apache import parser
|
from letsencrypt_apache import parser
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
class ApacheTlsSni01(common.TLSSNI01):
|
class ApacheTlsSni01(common.TLSSNI01):
|
||||||
"""Class that performs TLS-SNI-01 challenges within the Apache configurator
|
"""Class that performs TLS-SNI-01 challenges within the Apache configurator
|
||||||
@@ -104,9 +106,9 @@ class ApacheTlsSni01(common.TLSSNI01):
|
|||||||
self.configurator.reverter.register_file_creation(
|
self.configurator.reverter.register_file_creation(
|
||||||
True, self.challenge_conf)
|
True, self.challenge_conf)
|
||||||
|
|
||||||
with open(self.challenge_conf, "rw") as new_conf:
|
logger.debug("writing a config file with text: %s", config_text)
|
||||||
|
with open(self.challenge_conf, "w") as new_conf:
|
||||||
new_conf.write(config_text)
|
new_conf.write(config_text)
|
||||||
logger.debug(new_conf.read())
|
|
||||||
|
|
||||||
return addrs
|
return addrs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user