From a28d854c98f836950938e0daa02229c04b138ade Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 5 Dec 2019 15:37:26 +0000 Subject: [PATCH] location-exporter: Fix syntax errors for nftables export Signed-off-by: Michael Tremer --- src/python/location-exporter.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/location-exporter.in b/src/python/location-exporter.in index 983a7e8..28f761a 100644 --- a/src/python/location-exporter.in +++ b/src/python/location-exporter.in @@ -140,11 +140,11 @@ class NftablesOutputWriter(OutputWriter): suffix = "set" def _write_header(self, f): - h = "define %s = {" % self.name + h = "define %s = {\n" % self.name f.write(h.encode("ascii")) - def _write_footer(self): + def _write_footer(self, f): f.write(b"}") def write(self, network): -- 2.47.3