diff --git a/ssf/defaults.yaml b/ssf/defaults.yaml index 0d36c612..6301a5c0 100644 --- a/ssf/defaults.yaml +++ b/ssf/defaults.yaml @@ -22,8 +22,8 @@ ssf_node_anchors: # An alternative method could be to use: # `git describe --abbrev=0 --tags` # yamllint disable rule:line-length rule:quoted-strings - title: "chore(git): add Bundler config dir to '`'.gitignore'`' [skip ci]" - body: '* Checked using https://github.com/myii/ssf-formula/pull/130' + title: "fix(libtofs): “files_switch” mess up the variable exported by “map.jinja” [skip ci]" + body: '* Checked using https://github.com/myii/ssf-formula/pull/131' # yamllint enable rule:line-length rule:quoted-strings github: owner: 'saltstack-formulas' diff --git a/ssf/files/default/formula/libtofs.jinja b/ssf/files/default/formula/libtofs.jinja index 900e62b5..ffb3b545 100644 --- a/ssf/files/default/formula/libtofs.jinja +++ b/ssf/files/default/formula/libtofs.jinja @@ -82,7 +82,7 @@ ) %} {#- Append an empty value to evaluate as `default` in the loop below #} {%- if '' not in fsl %} - {%- do fsl.append('') %} + {%- set fsl = fsl + [''] %} {%- endif %} {%- for fs in fsl %} {%- for src_file in src_files %} diff --git a/ssf/libtofs.jinja b/ssf/libtofs.jinja index 900e62b5..ffb3b545 100644 --- a/ssf/libtofs.jinja +++ b/ssf/libtofs.jinja @@ -82,7 +82,7 @@ ) %} {#- Append an empty value to evaluate as `default` in the loop below #} {%- if '' not in fsl %} - {%- do fsl.append('') %} + {%- set fsl = fsl + [''] %} {%- endif %} {%- for fs in fsl %} {%- for src_file in src_files %}