Merge pull request #1099 from YunoHost/fix-dns-conf

[fix] DNS conf
This commit is contained in:
Alexandre Aubin 2020-12-10 14:08:55 +01:00 committed by GitHub
commit af0160b2a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,6 +258,9 @@ def domain_dns_conf(domain, ttl=None):
"""
if domain not in domain_list()['domains']:
raise YunohostError('domain_name_unknown', domain=domain)
ttl = 3600 if ttl is None else ttl
dns_conf = _build_dns_conf(domain, ttl)