fix(minion): fix version compare in minion.sls

This commit is contained in:
nb 2019-06-17 12:08:59 +11:00 committed by sticky-note
parent 042e9baad3
commit 49bf81bc6e
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ salt-minion:
- file: salt-minion - file: salt-minion
{%- if not salt_settings.restart_via_at %} {%- if not salt_settings.restart_via_at %}
cmd.run: cmd.run:
{%- if grains['saltversioninfo'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %} {%- if grains['saltversioninfo'] >= [ 2016, 3 ] %}
{%- if grains['kernel'] == 'Windows' %} {%- if grains['kernel'] == 'Windows' %}
- name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}' - name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}'
{%- else %} {%- else %}