fix(chocolatey): ensure states only run on Windows systems

This commit is contained in:
kartnico 2020-03-28 10:58:10 +01:00 committed by Imran Iqbal
parent 385b2238f4
commit c1d680a9dd
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -2,6 +2,8 @@
# vim: ft=sls
{% from "packages/map.jinja" import packages with context %}
{% if grains['os'] == 'Windows' %}
{% if packages.chocolatey %}
{% set req_states = packages.chocolatey.required.states %}
{% set req_pkgs = packages.chocolatey.required.pkgs %}
@ -47,3 +49,5 @@ chocolatey_req_pkgs:
{% endfor %}
{% endif %}
{% endif %}
{% endif %}