Skip to content

Commit c1d680a

Browse files
kartnicomyii
authored andcommitted
fix(chocolatey): ensure states only run on Windows systems
1 parent 385b223 commit c1d680a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/chocolatey.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# vim: ft=sls
33
{% from "packages/map.jinja" import packages with context %}
44
5+
{% if grains['os'] == 'Windows' %}
6+
57
{% if packages.chocolatey %}
68
{% set req_states = packages.chocolatey.required.states %}
79
{% set req_pkgs = packages.chocolatey.required.pkgs %}
@@ -47,3 +49,5 @@ chocolatey_req_pkgs:
4749
{% endfor %}
4850
{% endif %}
4951
{% endif %}
52+
53+
{% endif %}

0 commit comments

Comments
 (0)