Skip to content

Commit 17a22a7

Browse files
committed
fix: post-map.jinja path from formula parameters dir
1 parent a5be79d commit 17a22a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TEMPLATE/libs/map.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@
6363

6464
{#- Per formula post-processing of `mapdata` if it exists #}
6565
{%- do salt["log.debug"]("map.jinja: post-processing of 'mapdata'") %}
66-
{%- include tplroot ~ "/libs/post-map.jinja" ignore missing %}
66+
{%- include formula_param_dir ~ "/post-map.jinja" ignore missing %}

docs/map.jinja.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ The ``map.jinja`` file aggregates configuration values from several sources:
293293

294294
For the values loaded from YAML files, ``map.jinja`` will automatically try to load a Jinja2 template with the same name as the YAML file with the addition of the ``.jinja`` extension, for example ``foo/bar/quux.yaml.jinja``.
295295

296-
After loading values from all sources, it will try to include the ``salt://{{ tplroot }}/post-map.jinja`` Jinja file if it exists which can post-process the ``mapdata`` variable.
296+
After loading values from all sources, it will try to include the ``salt://{{ tplroot }}/parameters/post-map.jinja`` Jinja file if it exists which can post-process the ``mapdata`` variable.
297297

298298
Configuring ``map.jinja`` sources
299299
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)