Automatically append a dot if the name ends with the zone name without dot. Fixes #3
This commit is contained in:
parent
287d9a6c2d
commit
f68bfc3768
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ def setup_url(
|
||||||
zone += "."
|
zone += "."
|
||||||
url += "/{}".format(zone)
|
url += "/{}".format(zone)
|
||||||
if name and zone:
|
if name and zone:
|
||||||
|
if name.endswith(zone.rstrip(".")):
|
||||||
|
name += '.'
|
||||||
url += "/records/{}".format(name)
|
url += "/records/{}".format(name)
|
||||||
if zone and name and rtype:
|
if zone and name and rtype:
|
||||||
url += "/{}".format(rtype)
|
url += "/{}".format(rtype)
|
||||||
|
|
Loading…
Add table
Reference in a new issue