mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
respect_bg_domain_updates in routes/api (#962)
This commit is contained in:
parent
6e04d0419b
commit
c4a9498898
@ -973,8 +973,9 @@ def api_zone_subpath_forward(server_id, zone_id, subpath):
|
|||||||
@apikey_can_access_domain
|
@apikey_can_access_domain
|
||||||
def api_zone_forward(server_id, zone_id):
|
def api_zone_forward(server_id, zone_id):
|
||||||
resp = helper.forward_request()
|
resp = helper.forward_request()
|
||||||
domain = Domain()
|
if not Setting().get('bg_domain_updates'):
|
||||||
domain.update()
|
domain = Domain()
|
||||||
|
domain.update()
|
||||||
status = resp.status_code
|
status = resp.status_code
|
||||||
if 200 <= status < 300:
|
if 200 <= status < 300:
|
||||||
current_app.logger.debug("Request to powerdns API successful")
|
current_app.logger.debug("Request to powerdns API successful")
|
||||||
|
Loading…
Reference in New Issue
Block a user