Add the final dot at the right place
[tooling/letool.git] / bin / addrecord
index cf2c573ae8716a35f1bc73c5aef245df576e0cf5..29e2c7fee7aedabf356022700b8025942e03c4fc 100755 (executable)
@@ -62,7 +62,7 @@ class Addrecord:
             sys.stderr.write("Not a valid ACME challenge record: '%s'\n" % value)
             return 2
 
-        records = [ "{0:<35s}.\tIN\tTXT\t\"{1}\"\n".format("_acme-challenge.%s" % host, value) ]
+        records = [ "{0:<35s}\tIN\tTXT\t\"{1}\"\n".format("_acme-challenge.%s." % host, value) ]
         self._update_records('acme', host, records)
         print("OK")
         return 0