Skip to content

Commit 1b7e179

Browse files
authored
Merge pull request #54 from sbraverman/brave-1
Simplifies jinja logic and removes extra lines
2 parents 4586aea + aeb1844 commit 1b7e179

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

haproxy/init.sls

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
# Meta-state to fully setup haproxy on debian. (or any other distro that has haproxy in their repo)
44

55
include:
6-
{% if salt['pillar.get']('haproxy:include') %}
7-
{% for item in salt['pillar.get']('haproxy:include') %}
6+
{%- set haproxy_items = salt['pillar.get']('haproxy:include', []) %}
7+
{%- for item in haproxy_items %}
88
- {{ item }}
9-
{% endfor %}
10-
{% endif %}
9+
{%- endfor %}
1110
- haproxy.install
1211
- haproxy.service
1312
- haproxy.config

0 commit comments

Comments
 (0)