Skip to content

Commit

Permalink
feat(map): manipulate mapdata directly at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
baby-gnu committed Jan 18, 2021
1 parent 364e831 commit a734b08
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openvpn/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
) %}

{#- Load formula parameters values #}
{%- set _formula_matchers =
["defaults.yaml"]
+ map_sources
+ ["post_map.yaml.jinja"] %}
{%- set _formula_matchers = ["defaults.yaml"] + map_sources %}

{%- set _formula_settings = mapstack(
matchers=_formula_matchers,
Expand All @@ -63,3 +60,7 @@

{%- do salt["log.debug"]("map.jinja: save parameters in variable 'mapdata'") %}
{%- set mapdata = _formula_settings["values"] %}

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

0 comments on commit a734b08

Please sign in to comment.