mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
Updated zone type comparison logic in domain router to be case-insensitive (#1706)
This commit is contained in:
commit
24c08a269e
@ -66,7 +66,7 @@ def domain(domain_name):
|
|||||||
current_app.logger.debug("Fetched rrsets: \n{}".format(pretty_json(rrsets)))
|
current_app.logger.debug("Fetched rrsets: \n{}".format(pretty_json(rrsets)))
|
||||||
|
|
||||||
# API server might be down, misconfigured
|
# API server might be down, misconfigured
|
||||||
if not rrsets and domain.type != 'slave':
|
if not rrsets and str(domain.type).lower() != 'slave':
|
||||||
abort(500)
|
abort(500)
|
||||||
|
|
||||||
quick_edit = Setting().get('record_quick_edit')
|
quick_edit = Setting().get('record_quick_edit')
|
||||||
|
Loading…
Reference in New Issue
Block a user