From: Michael Tremer Date: Wed, 17 Dec 2025 12:34:29 +0000 (+0000) Subject: export: Improve the slightly broken header in DNS zones X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=location%2Flibloc.git export: Improve the slightly broken header in DNS zones Signed-off-by: Michael Tremer --- diff --git a/src/python/location/export.py b/src/python/location/export.py index 45c3296..533d0f7 100644 --- a/src/python/location/export.py +++ b/src/python/location/export.py @@ -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)