From 051c3df42d5616b8a767011f29419681284cb3c3 Mon Sep 17 00:00:00 2001 From: nb Date: Mon, 17 Jun 2019 12:08:59 +1100 Subject: [PATCH] fix(minion): fix version compare in minion.sls --- salt/minion.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/minion.sls b/salt/minion.sls index 43ca54e6c..30fbfff8b 100644 --- a/salt/minion.sls +++ b/salt/minion.sls @@ -78,7 +78,8 @@ salt-minion: - file: salt-minion {%- if not salt_settings.restart_via_at %} cmd.run: - {%- if grains['saltversioninfo'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %} + {%- if grains['saltversioninfo'][0] >= 2017 + or grains['saltversioninfo'] >= [ 2016, 3 ] %} {%- if grains['kernel'] == 'Windows' %} - name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}' {%- else %}