]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add a directory-specific nameserver data to templates
authorNicki Křížek <nicki@isc.org>
Wed, 1 Apr 2026 15:10:08 +0000 (17:10 +0200)
committerNicki Křížek <nicki@isc.org>
Thu, 28 May 2026 14:52:24 +0000 (16:52 +0200)
commit5cd3e1b6a60102a968f53f5755fe87dd186ade4e
tree760f5178887593b31a2e5f0a89a63d95bf84b6d4
parent95ca42810e56eda2cb2f27819ddaa039de14fc4a
Add a directory-specific nameserver data to templates

If a template is being rendered into a directory that represents a
nameserver (e.g. "ns1"), include a nameserver-specific information in
the data - variable called "ns" which has information about the
nameserver this file belongs to.

Ensure the "ns" variable is only exposed to the template when rendered,
without affecting the environment variables (always work with a copy of
the env_vars).

(cherry picked from commit aa435b2e036a668d87579495cae1e31524a97f31)
bin/tests/system/isctest/template.py