fix(jinja): replace version_cmp with grains lookup
This commit is contained in:
parent
4955737f84
commit
325f6c061b
@ -34,7 +34,7 @@
|
|||||||
{%- do processed_basedirs.append(basedir) %}
|
{%- do processed_basedirs.append(basedir) %}
|
||||||
{{ basedir }}:
|
{{ basedir }}:
|
||||||
file.directory:
|
file.directory:
|
||||||
- parallel: {{ salt.pkg.version_cmp(grains['saltversion'], '2017.7.0') >= 0 }}
|
- parallel: {{ grains['saltversioninfo'] >= [2017, 7, 0] }}
|
||||||
{%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts',
|
{%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts',
|
||||||
{'makedirs': True}).items() %}
|
{'makedirs': True}).items() %}
|
||||||
- {{ key }}: {{ value }}
|
- {{ key }}: {{ value }}
|
||||||
|
Loading…
Reference in New Issue
Block a user