2
0

fix(jinja): replace version_cmp with grains lookup

This commit is contained in:
N 2020-03-19 13:16:00 +00:00
parent b7d323f878
commit dd37869d28
No known key found for this signature in database
GPG Key ID: 55A292EAB4E54067

View File

@ -54,7 +54,7 @@
{{ gitdir_env }}: {{ gitdir_env }}:
git.latest: git.latest:
- name: {{ baseurl }}/{{ f_name }}.git - name: {{ baseurl }}/{{ f_name }}.git
- parallel: {{ salt.pkg.version_cmp(grains['saltversion'], '2017.7.0') >= 0 }} - parallel: {{ grains['saltversioninfo'] >= [2017, 7, 0] }}
- target: {{ gitdir }} - target: {{ gitdir }}
{%- for key, value in options.items() %} {%- for key, value in options.items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}