mirror of
https://github.com/oskar456/dzonegit.git
synced 2024-05-11 05:55:41 +00:00
Merge pull request #14 from oskar456/zonerelfile
This commit is contained in:
@ -183,6 +183,9 @@ In the template strings, these placeholders are supported:
|
||||
``$zonefile``
|
||||
Full path to the zone file
|
||||
|
||||
``$zonerelfile``
|
||||
Path to the zone file, relative to checkout path (useful for chroot environments)
|
||||
|
||||
``$zonevar``
|
||||
Per-zone specific variable, see above
|
||||
|
||||
|
@ -395,7 +395,7 @@ def template_config(checkoutpath, template, blacklist=set(), whitelist=set()):
|
||||
zonevar = defaultvar
|
||||
out.append(itemtpl.substitute(
|
||||
mapping, zonename=zonename,
|
||||
zonefile=str(f), zonevar=zonevar,
|
||||
zonefile=str(f), zonerelfile=str(f.relative_to(checkoutpath)), zonevar=zonevar,
|
||||
))
|
||||
if footertpl.template:
|
||||
out.append(footertpl.substitute(mapping))
|
||||
|
Reference in New Issue
Block a user