From: Michael Tremer Date: Tue, 16 Dec 2025 17:53:33 +0000 (+0000) Subject: exporter: Call the correct functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60245a8098ed1a74d4ef47da6863ca97ff507353;p=location%2Flibloc.git exporter: Call the correct functions Signed-off-by: Michael Tremer --- diff --git a/src/python/location/export.py b/src/python/location/export.py index a6ded65..0197151 100644 --- a/src/python/location/export.py +++ b/src/python/location/export.py @@ -343,11 +343,11 @@ class ZoneExporter(object): name = network.reverse_pointer(suffix="") if name is None: for subnet in network.subnets: - self._write_record(f, subnet, *args, **kwargs) + self._write_network(f, subnet, *args, **kwargs) return - self._write_record(f, network, *args, **kwargs) + self._write_record(f, name, *args, **kwargs) def _write_record(self, f, name, type, content): f.write("%s IN %s %s\n" % (name, type, content)) @@ -362,7 +362,7 @@ class ZoneExporter(object): def _write_bogons(self, f): for network in self.db.list_bogons(): - self._write_record(f, network, "A", "127.0.0.1") + self._write_network(f, network, "A", "127.0.0.1") # Origin