From 98bd9634a4f02c072691932bc7e4c3cd5cb70e94 Mon Sep 17 00:00:00 2001 From: Adrien Delle Cave Date: Wed, 19 Jan 2022 13:50:12 +0100 Subject: [PATCH 1/2] [BUG] Fixed delete zone from API --- powerdnsadmin/routes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/routes/api.py b/powerdnsadmin/routes/api.py index 4fce368..c44dfbc 100644 --- a/powerdnsadmin/routes/api.py +++ b/powerdnsadmin/routes/api.py @@ -287,7 +287,7 @@ def api_login_delete_zone(domain_name): domain.update() history = History(msg='Delete domain {0}'.format( - pretty_domain_name(domain_name)), + utils.pretty_domain_name(domain_name)), detail='', created_by=current_user.username, domain_id=domain_id) From 6982e0107cbec2c134006fc303662541a8bb3689 Mon Sep 17 00:00:00 2001 From: Adrien Delle Cave Date: Thu, 20 Jan 2022 12:49:37 +0100 Subject: [PATCH 2/2] Typo in routes/api.py --- powerdnsadmin/routes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/routes/api.py b/powerdnsadmin/routes/api.py index c44dfbc..9668176 100644 --- a/powerdnsadmin/routes/api.py +++ b/powerdnsadmin/routes/api.py @@ -1175,7 +1175,7 @@ def api_server_config_forward(server_id): resp = helper.forward_request() return resp.content, resp.status_code, resp.headers.items() -# The endpoint to snychronize Domains in background +# The endpoint to synchronize Domains in background @api_bp.route('/sync_domains', methods=['GET']) @apikey_or_basic_auth def sync_domains():