1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-04 05:49:19 +03:00

fixed issue #5974 for certbot-dns-route53 (#5984)

* fixed issue #5974 for certbot-dns-route53

* fixed issue #5967 for certbot-dns-digitalocean

* update to use acme.magic_typing and DefaultDict class

* added no-name-in-module identifier, for issue #5974

* added unused-import identifier to disable option, for issue #5974
This commit is contained in:
GmH
2018-05-15 14:22:09 -04:00
committed by Brad Warren
parent 9bd5b3dda2
commit 751f9843b4
4 changed files with 11 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ from certbot import errors
from certbot import interfaces
from certbot.plugins import dns_common
from acme.magic_typing import DefaultDict, List, Dict # pylint: disable=unused-import, no-name-in-module
logger = logging.getLogger(__name__)
INSTRUCTIONS = (
@@ -34,7 +36,7 @@ class Authenticator(dns_common.DNSAuthenticator):
def __init__(self, *args, **kwargs):
super(Authenticator, self).__init__(*args, **kwargs)
self.r53 = boto3.client("route53")
self._resource_records = collections.defaultdict(list)
self._resource_records = collections.defaultdict(list) # type: DefaultDict[str, List[Dict[str, str]]]
def more_info(self): # pylint: disable=missing-docstring,no-self-use
return "Solve a DNS01 challenge using AWS Route53"

View File

@@ -1,2 +1,2 @@
acme[dev]==0.21.1
-e acme[dev]
certbot[dev]==0.21.1

View File

@@ -8,7 +8,7 @@ version = '0.25.0.dev0'
# Remember to update local-oldest-requirements.txt when changing the minimum
# acme/certbot version.
install_requires = [
'acme>=0.21.1',
'acme>0.24.0',
'certbot>=0.21.1',
'boto3',
'mock',

View File

@@ -26,5 +26,11 @@ check_untyped_defs = True
[mypy-certbot_dns_rfc2136.*]
check_untyped_defs = True
[mypy-certbot_dns_route53.*]
check_untyped_defs = True
[mypy-certbot_dns_digitalocean.*]
check_untyped_defs = True
[mypy-certbot_nginx.*]
check_untyped_defs = True