]> git.ipfire.org Git - location/libloc.git/commitdiff
export: Improve the slightly broken header in DNS zones master
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Dec 2025 12:34:29 +0000 (12:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Dec 2025 12:34:29 +0000 (12:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location/export.py

index 45c32968034c83b305f2425c72e8710da24b5754..533d0f7e32b9fd918d9102272d6470b6a54bc9ab 100644 (file)
@@ -326,11 +326,11 @@ class ZoneExporter(object):
                f.write(";##############################################################################\n")
                f.write("; IPFire Location DNS Zone\n")
                f.write(";##############################################################################\n")
+               if self.db.vendor:
+                       f.write("; Vendor     : %s\n" % self.db.vendor)
                if self.db.license:
-                       f.write("License: %s\n" % self.db.license)
-               if self.db.description:
-                       f.write("%s\n" % self.db.description)
-               f.write("Updated At: %s\n" % created_at.isoformat())
+                       f.write("; License    : %s\n" % self.db.license)
+               f.write("; Updated At : %s\n" % created_at.isoformat())
                f.write(";##############################################################################\n")
 
                f.write("$ORIGIN %s\n" % self.origin)