File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
files/default/formula/_mapdata Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ ssf_node_anchors:
132132 driver :
133133 run_options : {}
134134 map_jinja :
135+ filename : ' map.jinja'
135136 verification : {}
136137 platforms :
137138 # Could use `opensuse-leap` throughout since `/` never used at this end
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ ${ '# vim: ft=sls' }
33---
44{# - Get the `tplroot` from `tpldir` #}
55{%- set tplroot = tpldir.split(' /' )[0 ] %}
6+ <% filename = map_jinja[' filename' ] %>\
67<% import_var = map_jinja[' verification' ][' import' ] %>\
78<% import_var_as = ' ' if import_var == ' mapdata' else ' as mapdata' %>\
8- {%- from tplroot ~ " /map.jinja " import $ { import_var }$ { import_var_as } with context % }
9+ {%- from tplroot ~ " /${ filename } " import $ { import_var }$ { import_var_as } with context % }
910
1011{%- do salt[' log.debug' ](' ### MAP.JINJA DUMP ###\n ' ~ mapdata | yaml(False )) % }
1112
You can’t perform that action at this time.
0 commit comments