]> 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>
Wed, 27 May 2026 14:19:31 +0000 (14:19 +0000)
commitaa435b2e036a668d87579495cae1e31524a97f31
treeacc102f7089ea20ad89cd59b2e9b6f59cdad2908
parentfa3a59e70c97a24090a24d46135f672a004bf9ca
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).
bin/tests/system/isctest/template.py