Automatically append a dot if the name ends with the zone name without dot. Fixes #3

pull/7/head v0.0.7
Micke Nordin 5 months ago
parent 287d9a6c2d
commit f68bfc3768

@ -175,6 +175,8 @@ def setup_url(
zone += "."
url += "/{}".format(zone)
if name and zone:
if name.endswith(zone.rstrip(".")):
name += '.'
url += "/records/{}".format(name)
if zone and name and rtype:
url += "/{}".format(rtype)

Loading…
Cancel
Save