2
0

Merge pull request #419 from sticky-note/fix/minion-version

fix(minion): Fix version compare in minion.sls
This commit is contained in:
Imran Iqbal 2019-08-25 23:38:19 +01:00 committed by GitHub
commit 23b2b7da64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ 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'] >= [ 2016, 3 ] %}
{%- if grains['kernel'] == 'Windows' %}
- name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}'
{%- else %}