mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Merge pull request #144 from ThomasWaldmann/master
bug fix + some small fixes
This commit is contained in:
@@ -201,7 +201,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
.. todo:: This should maybe return list if no obvious answer
|
||||
is presented.
|
||||
|
||||
:param str name: domain name
|
||||
:param str target_name: domain name
|
||||
|
||||
:returns: ssl vhost associated with name
|
||||
:rtype: :class:`letsencrypt.client.apache.obj.VirtualHost`
|
||||
@@ -348,7 +348,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
now NameVirtualHosts. If version is earlier than 2.4, check if addr
|
||||
has a NameVirtualHost directive in the Apache config
|
||||
|
||||
:param str addr: vhost address ie. \*:443
|
||||
:param str target_addr: vhost address ie. \*:443
|
||||
|
||||
:returns: Success
|
||||
:rtype: bool
|
||||
|
||||
@@ -342,19 +342,18 @@ class ApacheParser(object):
|
||||
|
||||
.. todo:: This will have to be updated for other distros versions
|
||||
|
||||
:param str filename: optional filename that will be used as the
|
||||
user config
|
||||
:param str root: pathname which contains the user config
|
||||
|
||||
"""
|
||||
# Basic check to see if httpd.conf exists and
|
||||
# in heirarchy via direct include
|
||||
# in hierarchy via direct include
|
||||
# httpd.conf was very common as a user file in Apache 2.2
|
||||
if (os.path.isfile(os.path.join(self.root, 'httpd.conf')) and
|
||||
self.find_dir(
|
||||
case_i("Include"), case_i("httpd.conf"), root)):
|
||||
return os.path.join(self.root, 'httpd.conf')
|
||||
else:
|
||||
return os.path.join(self.root + 'apache2.conf')
|
||||
return os.path.join(self.root, 'apache2.conf')
|
||||
|
||||
|
||||
def case_i(string):
|
||||
|
||||
@@ -15,7 +15,7 @@ def dvsni_gen_cert(filepath, name, r_b64, nonce, key):
|
||||
:param str filepath: destination to save certificate. This will overwrite
|
||||
any file that is currently at the location.
|
||||
:param str name: domain to validate
|
||||
:param str dvsni_r: jose base64 encoded dvsni r value
|
||||
:param str r_b64: jose base64 encoded dvsni r value
|
||||
:param str nonce: hex value of nonce
|
||||
|
||||
:param key: Key to perform challenge
|
||||
|
||||
@@ -182,7 +182,7 @@ class FileDisplay(object):
|
||||
else:
|
||||
try:
|
||||
selection = int(ans)
|
||||
# TODO add check to make sure it is liess than max
|
||||
# TODO add check to make sure it is less than max
|
||||
if selection < 0:
|
||||
self.outfile.write(e_msg)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user