diff --git a/prometheus/libtofs.jinja b/prometheus/libtofs.jinja index 900e62b..0668925 100644 --- a/prometheus/libtofs.jinja +++ b/prometheus/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 %}