Skip to content

Commit

Permalink
fix(chocolatey): ensure states only run on Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
kartnico authored and myii committed Mar 30, 2020
1 parent 385b223 commit c1d680a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/chocolatey.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -47,3 +49,5 @@ chocolatey_req_pkgs:
{% endfor %}
{% endif %}
{% endif %}
{% endif %}

0 comments on commit c1d680a

Please sign in to comment.