diff --git a/certbot_route53/authenticator.py b/certbot_route53/authenticator.py index 2b941a7e5..732080eeb 100644 --- a/certbot_route53/authenticator.py +++ b/certbot_route53/authenticator.py @@ -46,7 +46,7 @@ class Authenticator(common.Plugin): return max( ( zone for zone in r53.list_hosted_zones()["HostedZones"] - if (domain+".").endswith("."+zone["Name"]) + if (domain+".").endswith("."+zone["Name"]) or (domain+".") == (zone["Name"]) ), key=lambda zone: len(zone["Name"]), ) diff --git a/setup.py b/setup.py index 2aa0497f0..4b9b754a8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import sys from distutils.core import setup from setuptools import find_packages -version = '0.1.4' +version = '0.1.5' install_requires = [ 'acme>=0.9.0.dev0',