moving _check_config() lower in file, near other private methods
This commit is contained in:
parent
c38e651eb0
commit
48bccd6f68
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user