Fix get_zone args

This commit is contained in:
nemunaire 2023-12-10 12:39:42 +01:00
parent 106e879eb9
commit 360bc2a587

View File

@ -55,7 +55,7 @@ def main():
if d.domain == p['domain'] or d.domain == p['domain'] + ".": if d.domain == p['domain'] or d.domain == p['domain'] + ".":
for z in d.zone_history: for z in d.zone_history:
if p['zone'] is None or z == p['zone']: if p['zone'] is None or z == p['zone']:
zone = d.get_zone(z) zone = d.get_zone(z.id)
if p['subdomain'].removesuffix(d.domain) in zone.services: if p['subdomain'].removesuffix(d.domain) in zone.services:
for s in zone.services[p['subdomain'].removesuffix(d.domain)]: for s in zone.services[p['subdomain'].removesuffix(d.domain)]: