This commit is contained in:
Benjamin Graillot 2018-12-24 10:47:55 +01:00
commit 8c2369d474

10
main.py
View file

@ -56,7 +56,6 @@ template_zone = (
"\n"
"{fp_records}\n"
"\n"
"{ns_records}\n"
"{mx_records}\n"
"\n"
"{txt_records}\n"
@ -188,15 +187,6 @@ def write_dns_file(zone):
for x in zone['a_records']
)
aaaa_records = "\n".join(
template_aaaa.format(
hostname=x['hostname'],
ipv6=ip['ipv6']
)
for x in zone['aaaa_records']
for ip in x['ipv6']
if x['ipv6'] is not None
)
aaaa_records = "\n".join(
template_aaaa.format(