Skip to content

Commit b9ce3cf

Browse files
committed
Implement array support for http-check
1 parent 4b56cfa commit b9ce3cf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

haproxy/templates/haproxy.jinja

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ listen {{ listener.get('name', listener_name) }}
294294
{%- elif 'httpcheck' in listener %}{# deprecated: but for compatibility #}
295295
{%- if listener.httpcheck is string %}
296296
http-check {{ listener.httpcheck }}
297+
{%- else %}
298+
{%- for check_line in listener.httpcheck %}
299+
http-check {{ check_line }}
300+
{%- endfor %}
297301
{%- endif %}
298302
{%- endif %}
299303
{%- if 'tcpchecks' in listener %}
@@ -589,6 +593,10 @@ backend {{ backend.get('name', backend_name) }}
589593
{%- elif 'httpcheck' in backend %}{# deprecated: but for compatibility #}
590594
{%- if backend.httpcheck is string %}
591595
http-check {{ backend.httpcheck }}
596+
{%- else %}
597+
{%- for check_line in backend.httpcheck %}
598+
http-check {{ check_line }}
599+
{%- endfor %}
592600
{%- endif %}
593601
{%- endif %}
594602
{%- if 'redirects' in backend %}

0 commit comments

Comments
 (0)