Skip to content

Commit

Permalink
Merge pull request #66 from dricoco/dricoco-patch-2
Browse files Browse the repository at this point in the history
Add test on value.servers
  • Loading branch information
goldyfruit authored Jan 24, 2023
2 parents 3ff0a2c + 916f8fa commit efe55b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/etc/haproxy/haproxy-backend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ backend {{ name }}
server-template {{ srv_tmpl }}
{% endfor %}
{% endif %}
{% for srv in value.servers %}
{% if value.servers is defined %}
{% for srv in value.servers %}
server {{ srv }}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}

{% endfor %}
Expand Down

0 comments on commit efe55b1

Please sign in to comment.