Move ACME host validation logic prior to R53 host modification

This commit is contained in:
Curtis Castrapel 2019-04-26 17:27:44 -07:00
parent 333ba8030a
commit 1a90e71884
1 changed files with 2 additions and 1 deletions

View File

@ -77,8 +77,9 @@ class AcmeHandler(object):
change_ids = [] change_ids = []
host_to_validate = self.maybe_remove_wildcard(host) host_to_validate = self.maybe_remove_wildcard(host)
host_to_validate = self.maybe_add_extension(host_to_validate, dns_provider_options)
dns_challenges = self.find_dns_challenge(host_to_validate, order.authorizations) dns_challenges = self.find_dns_challenge(host_to_validate, order.authorizations)
host_to_validate = self.maybe_add_extension(host_to_validate, dns_provider_options)
if not dns_challenges: if not dns_challenges:
sentry.captureException() sentry.captureException()
metrics.send('start_dns_challenge_error_no_dns_challenges', 'counter', 1) metrics.send('start_dns_challenge_error_no_dns_challenges', 'counter', 1)