fix: extra extra lines o/

This commit is contained in:
Tagada 2022-02-28 15:36:38 +01:00 committed by GitHub
parent d216d06c8c
commit 086a3d4fda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,7 @@ def domain_dns_suggest(domain):
result += "\n{name} {ttl} IN {type} {value}".format(**record)
if dns_conf["extra"]:
result += "\n\n"
result += "; Extra"
for record in dns_conf["extra"]:
result += "\n{name} {ttl} IN {type} {value}".format(**record)