add support for root domain

This commit is contained in:
Waylon Flinn 2016-11-04 20:26:34 -05:00
parent 4538766c48
commit ebe5d0c4f2
2 changed files with 2 additions and 2 deletions

View file

@ -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"]),
)

View file

@ -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',