moving PowerDNS number_of_attempts to global config variable ACME_POWERDNS_RETRIES

This commit is contained in:
csine-nflx 2020-01-29 11:20:39 -08:00
parent f3039a1210
commit ef115ef2b1
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ def wait_for_dns_change(change_id, account_number=None):
Retries and waits until successful.
"""
domain, token = change_id
number_of_attempts = 20
number_of_attempts = current_app.config.get("ACME_POWERDNS_RETRIES", "")
zone_name = _get_zone_name(domain, account_number)
nameserver = dnsutil.get_authoritative_nameserver(zone_name)
record_found = False