From 10b446ed1ed295e5bf75fcb437953df61b39ba9e Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 14 Feb 2020 19:10:08 +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 --- nginx/libtofs.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/libtofs.jinja b/nginx/libtofs.jinja index 900e62b..0668925 100644 --- a/nginx/libtofs.jinja +++ b/nginx/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 %}