Correcting case-sensitivity issue with zone type comparison.

This commit is contained in:
Matt Scott 2023-11-24 09:03:39 -05:00
parent a85827f302
commit 09014bf4a9
No known key found for this signature in database
GPG Key ID: A9A0AFFC0E079001

View File

@ -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')