mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
Restore parallel waiting to Route53 plugin (#5712)
* Bring back parallel updates to route53. * Re-add try * Fix TTL. * Remove unnecessary wait. * Add pylint exceptions. * Add dummy perform. * review.feedback * Fix underscore. * Fix lint.
This commit is contained in:
committed by
sydneyli
parent
f510f4bddf
commit
bf30226c69
@@ -42,14 +42,26 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
def _setup_credentials(self):
|
def _setup_credentials(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _perform(self, domain, validation_domain_name, validation):
|
def _perform(self, domain, validation_domain_name, validation): # pylint: disable=missing-docstring
|
||||||
try:
|
pass
|
||||||
change_id = self._change_txt_record("UPSERT", validation_domain_name, validation)
|
|
||||||
|
|
||||||
self._wait_for_change(change_id)
|
def perform(self, achalls):
|
||||||
|
self._attempt_cleanup = True
|
||||||
|
|
||||||
|
try:
|
||||||
|
change_ids = [
|
||||||
|
self._change_txt_record("UPSERT",
|
||||||
|
achall.validation_domain_name(achall.domain),
|
||||||
|
achall.validation(achall.account_key))
|
||||||
|
for achall in achalls
|
||||||
|
]
|
||||||
|
|
||||||
|
for change_id in change_ids:
|
||||||
|
self._wait_for_change(change_id)
|
||||||
except (NoCredentialsError, ClientError) as e:
|
except (NoCredentialsError, ClientError) as e:
|
||||||
logger.debug('Encountered error during perform: %s', e, exc_info=True)
|
logger.debug('Encountered error during perform: %s', e, exc_info=True)
|
||||||
raise errors.PluginError("\n".join([str(e), INSTRUCTIONS]))
|
raise errors.PluginError("\n".join([str(e), INSTRUCTIONS]))
|
||||||
|
return [achall.response(achall.account_key) for achall in achalls]
|
||||||
|
|
||||||
def _cleanup(self, domain, validation_domain_name, validation):
|
def _cleanup(self, domain, validation_domain_name, validation):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user