From e0c3bfb2e6a8776bbf76386a7e8f004960d1dbbb Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 25 Oct 2022 10:55:34 +0200 Subject: [PATCH] Make sure the zone ends with a dot --- scripts/knotctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/knotctl b/scripts/knotctl index 601cfbe..da0b84c 100755 --- a/scripts/knotctl +++ b/scripts/knotctl @@ -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)