Make sure the zone ends with a dot

This commit is contained in:
Micke Nordin 2022-10-25 10:55:34 +02:00
parent b6957ca04a
commit e0c3bfb2e6
Signed by untrusted user who does not match committer: micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -136,6 +136,8 @@ def setup_url(
) -> str:
url = baseurl + "/zones"
if zone:
if not zone.endswith("."):
zone += "."
url += "/{}".format(zone)
if name and zone:
url += "/records/{}".format(name)