Updated zone type comparison logic in domain router to be case-insensitive (#1706)

This commit is contained in:
Matt Scott 2023-11-24 09:11:40 -05:00 committed by GitHub
commit 24c08a269e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ def domain(domain_name):
current_app.logger.debug("Fetched rrsets: \n{}".format(pretty_json(rrsets)))
# API server might be down, misconfigured
if not rrsets and domain.type != 'slave':
if not rrsets and str(domain.type).lower() != 'slave':
abort(500)
quick_edit = Setting().get('record_quick_edit')