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 4e1a0b1
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
if 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 4e1a0b1

Please sign in to comment.