summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 18:39:53 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 18:39:53 +0200
commita30209ae0be3d0f1df37a30dbe73d10d3f3ec8cb (patch)
tree9d5433f426a0a5ff4230c2eff627062803f0d4e0 /src
parent2f507669fd7f7fc9c00ae2302c4f062c48e24706 (diff)
downloadvyos-1x-a30209ae0be3d0f1df37a30dbe73d10d3f3ec8cb.tar.gz
vyos-1x-a30209ae0be3d0f1df37a30dbe73d10d3f3ec8cb.zip
conntrackd: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/conntrack_sync.py2
-rwxr-xr-xsrc/op_mode/conntrack_sync.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/conntrack_sync.py b/src/conf_mode/conntrack_sync.py
index 34d1f7398..311e01529 100755
--- a/src/conf_mode/conntrack_sync.py
+++ b/src/conf_mode/conntrack_sync.py
@@ -111,7 +111,7 @@ def generate(conntrack):
os.unlink(config_file)
return None
- render(config_file, 'conntrackd/conntrackd.conf.tmpl', conntrack)
+ render(config_file, 'conntrackd/conntrackd.conf.j2', conntrack)
return None
diff --git a/src/op_mode/conntrack_sync.py b/src/op_mode/conntrack_sync.py
index 89f6df4b9..e45c38f07 100755
--- a/src/op_mode/conntrack_sync.py
+++ b/src/op_mode/conntrack_sync.py
@@ -77,7 +77,7 @@ def xml_to_stdout(xml):
parsed = xmltodict.parse(line)
out.append(parsed)
- print(render_to_string('conntrackd/conntrackd.op-mode.tmpl', {'data' : out}))
+ print(render_to_string('conntrackd/conntrackd.op-mode.j2', {'data' : out}))
if __name__ == '__main__':
args = parser.parse_args()