Make sure the zone ends with a dot

main
Micke Nordin 2 years ago
parent b6957ca04a
commit e0c3bfb2e6
Signed by untrusted user: micke
GPG Key ID: 0DA0A7A5708FE257

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

Loading…
Cancel
Save