From 325f6c061beb2721cb55777e206922d728f62e69 Mon Sep 17 00:00:00 2001 From: N Date: Thu, 19 Mar 2020 12:45:35 +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 9427a3a..506b769 100644 --- a/salt/formulas.sls +++ b/salt/formulas.sls @@ -34,7 +34,7 @@ {%- do processed_basedirs.append(basedir) %} {{ basedir }}: 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', {'makedirs': True}).items() %} - {{ key }}: {{ value }}