From dd37869d2842927a87273b940fd76945ff6a05ec Mon Sep 17 00:00:00 2001 From: N Date: Thu, 19 Mar 2020 13:16:00 +0000 Subject: [PATCH] fix(jinja): replace version_cmp with grains lookup --- salt/formulas.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/formulas.sls b/salt/formulas.sls index 506b769..7731d14 100644 --- a/salt/formulas.sls +++ b/salt/formulas.sls @@ -54,7 +54,7 @@ {{ gitdir_env }}: git.latest: - name: {{ baseurl }}/{{ f_name }}.git - - parallel: {{ salt.pkg.version_cmp(grains['saltversion'], '2017.7.0') >= 0 }} + - parallel: {{ grains['saltversioninfo'] >= [2017, 7, 0] }} - target: {{ gitdir }} {%- for key, value in options.items() %} - {{ key }}: {{ value }}