From 633ea7af12748975c5a2e72762fb2c513ff4d1c3 Mon Sep 17 00:00:00 2001 From: rwxd Date: Thu, 2 Nov 2023 14:39:06 +0100 Subject: [PATCH] chore: removed commented out source code --- powerdns_api_proxy/config.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/powerdns_api_proxy/config.py b/powerdns_api_proxy/config.py index e587ae9..7a43959 100644 --- a/powerdns_api_proxy/config.py +++ b/powerdns_api_proxy/config.py @@ -162,23 +162,3 @@ def ensure_rrsets_request_allowed(zone: ProxyConfigZone, request: RRSETRequest) raise HTTPException(403, f'RRSET {rrset["name"]} not allowed') logger.info(f'RRSET {rrset["name"]} allowed') return True - - -# def get_zone_config(environment: ProxyConfigEnvironment, zone: str) -> ProxyConfigZone: -# if not check_pdns_zone_allowed: -# raise ZoneNotAllowedException() -# for z in environment.zones: -# if check_zones_equal(z.name, zone): -# return z -# elif z.subzones: -# if check_subzone(zone, z.name): -# return ProxyConfigZone( -# name=zone, -# subzones=z.subzones, -# services=z.services, -# admin=z.admin, -# all_records=z.all_records, -# records=z.records, -# read_only=z.read_only, -# ) -# raise ZoneNotAllowedException()