0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2024-11-28 03:28:09 +01:00

fix(libtofs): “files_switch” mess up the variable exported by “map.jinja” [skip ci]

* Checked using https://github.com/myii/ssf-formula/pull/131
This commit is contained in:
Imran Iqbal 2020-02-14 19:10:18 +00:00
parent 928f5ec89a
commit 053b7879fd

View File

@ -16,7 +16,7 @@
'<tplroot>:tofs:files_switch' this is the ordered list of grains to '<tplroot>:tofs:files_switch' this is the ordered list of grains to
use as selector switch of the directories under use as selector switch of the directories under
"<path_prefix>/files" "<path_prefix>/files"
* indent_witdh: indentation of the result value to conform to YAML * indent_width: indentation of the result value to conform to YAML
* use_subpath: defaults to `False` but if set, lookup the source file * use_subpath: defaults to `False` but if set, lookup the source file
recursively from the current state directory up to `tplroot` recursively from the current state directory up to `tplroot`
@ -82,7 +82,7 @@
) %} ) %}
{#- Append an empty value to evaluate as `default` in the loop below #} {#- Append an empty value to evaluate as `default` in the loop below #}
{%- if '' not in fsl %} {%- if '' not in fsl %}
{%- do fsl.append('') %} {%- set fsl = fsl + [''] %}
{%- endif %} {%- endif %}
{%- for fs in fsl %} {%- for fs in fsl %}
{%- for src_file in src_files %} {%- for src_file in src_files %}