Commit cd214f29 authored by Michael Tremer's avatar Michael Tremer

export: Fix generating file names for ipset output

The tag that is being used in the filename was set after creating the
filename. The order has now been fixed and the export works fine for me.

Fixes: #12944
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent bed4777f
...@@ -48,6 +48,9 @@ class OutputWriter(object): ...@@ -48,6 +48,9 @@ class OutputWriter(object):
self.family = family self.family = family
self.directory = directory self.directory = directory
# Tag
self.tag = self._make_tag()
# Open output file # Open output file
if f: if f:
self.f = f self.f = f
...@@ -58,9 +61,6 @@ class OutputWriter(object): ...@@ -58,9 +61,6 @@ class OutputWriter(object):
else: else:
self.f = io.StringIO() self.f = io.StringIO()
# Tag
self.tag = self._make_tag()
# Call any custom initialization # Call any custom initialization
self.init() self.init()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment