Skip to content

Commit

Permalink
chore: removed commented out source code
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Nov 2, 2023
1 parent 6086950 commit 633ea7a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions powerdns_api_proxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 633ea7a

Please sign in to comment.