Make sure the zone ends with a dot
This commit is contained in:
parent
b6957ca04a
commit
e0c3bfb2e6
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue