Skip to content

Commit

Permalink
refactor(tofs): ensure (v2 > v1 > default) checking for src_files
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Mar 24, 2019
1 parent 5730e94 commit 3e62d7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions template/libtofs.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@
tplroot ~ ':tofs:files_switch',
default_files_switch
) %}
{#- Lookup files or fallback to source_files parameter #}
{#- Lookup source_files (v2), files (v1), or fallback to source_files parameter #}
{%- set src_files = salt['config.get'](
tplroot ~ ':tofs:source_files:' ~ lookup,
source_files
salt['config.get'](
tplroot ~ ':tofs:files:' ~ lookup,
source_files
)
) %}
{#- Only add to [''] when supporting older TOFS implementations #}
{%- set path_prefix_exts = [''] %}
Expand Down

0 comments on commit 3e62d7b

Please sign in to comment.