From 28d80f5da9a31308aae82b22cd655c0eb157b84b Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 14 Feb 2020 19:11:16 +0000 Subject: [PATCH] =?UTF-8?q?fix(libtofs):=20=E2=80=9Cfiles=5Fswitch?= =?UTF-8?q?=E2=80=9D=20mess=20up=20the=20variable=20exported=20by=20?= =?UTF-8?q?=E2=80=9Cmap.jinja=E2=80=9D=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Checked using https://github.com/myii/ssf-formula/pull/131 --- strongswan/libtofs.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strongswan/libtofs.jinja b/strongswan/libtofs.jinja index 900e62b..0668925 100644 --- a/strongswan/libtofs.jinja +++ b/strongswan/libtofs.jinja @@ -16,7 +16,7 @@ ':tofs:files_switch' this is the ordered list of grains to use as selector switch of the directories under "/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 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 #} {%- if '' not in fsl %} - {%- do fsl.append('') %} + {%- set fsl = fsl + [''] %} {%- endif %} {%- for fs in fsl %} {%- for src_file in src_files %}