moving _check_config() lower in file, near other private methods

This commit is contained in:
csine-nflx 2020-02-03 19:08:28 -08:00
parent c38e651eb0
commit 48bccd6f68

View File

@ -16,10 +16,6 @@ REQUIRED_VARIABLES = [
]
def _check_conf():
utils.validate_conf(current_app, REQUIRED_VARIABLES)
class Zone:
""" This class implements a PowerDNS zone in JSON. """
@ -216,6 +212,10 @@ def delete_txt_record(change_id, account_number, domain, token):
current_app.logger.debug(log_data)
def _check_conf():
utils.validate_conf(current_app, REQUIRED_VARIABLES)
def _generate_header():
"""Generate a PowerDNS API header and return it as a dictionary"""
api_key_name = current_app.config.get("ACME_POWERDNS_APIKEYNAME")