Skip to content

Commit

Permalink
fix(minion): fix version compare in minion.sls
Browse files Browse the repository at this point in the history
  • Loading branch information
nb authored and sticky-note committed Aug 22, 2019
1 parent 042e9ba commit 051c3df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 051c3df

Please sign in to comment.