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 committed Jun 17, 2019
1 parent be262e8 commit e411732
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 @@ -58,7 +58,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'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %}
{%- if grains['kernel'] == 'Windows' %}
- name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}'
{%- else %}
Expand Down

0 comments on commit e411732

Please sign in to comment.