Add the final dot at the right place
authorChristoph Egger <christoph@christoph-egger.org>
Thu, 27 Oct 2016 22:50:54 +0000 (00:50 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Thu, 27 Oct 2016 22:50:54 +0000 (00:50 +0200)
bin/addrecord

index cf2c573..29e2c7f 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