mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-12 16:40:26 +00:00
Merge pull request #1101 from decryptus/master
[BUG] Fixed delete zone from API
This commit is contained in:
commit
c6de972ed8
@ -288,7 +288,7 @@ def api_login_delete_zone(domain_name):
|
|||||||
domain.update()
|
domain.update()
|
||||||
|
|
||||||
history = History(msg='Delete domain {0}'.format(
|
history = History(msg='Delete domain {0}'.format(
|
||||||
pretty_domain_name(domain_name)),
|
utils.pretty_domain_name(domain_name)),
|
||||||
detail='',
|
detail='',
|
||||||
created_by=current_user.username,
|
created_by=current_user.username,
|
||||||
domain_id=domain_id)
|
domain_id=domain_id)
|
||||||
@ -1176,7 +1176,7 @@ def api_server_config_forward(server_id):
|
|||||||
resp = helper.forward_request()
|
resp = helper.forward_request()
|
||||||
return resp.content, resp.status_code, resp.headers.items()
|
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'])
|
@api_bp.route('/sync_domains', methods=['GET'])
|
||||||
@apikey_or_basic_auth
|
@apikey_or_basic_auth
|
||||||
def sync_domains():
|
def sync_domains():
|
||||||
|
Loading…
Reference in New Issue
Block a user