From 09014bf4a9931d9de02029aa5494e2de3ca4be73 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Fri, 24 Nov 2023 09:03:39 -0500 Subject: [PATCH] Correcting case-sensitivity issue with zone type comparison. --- powerdnsadmin/routes/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/routes/domain.py b/powerdnsadmin/routes/domain.py index 56ca405..6cd9d38 100644 --- a/powerdnsadmin/routes/domain.py +++ b/powerdnsadmin/routes/domain.py @@ -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')