Skip to content

Commit 35d92a1

Browse files
committed
Fix timeout blocks in all types
1 parent 89d5963 commit 35d92a1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

haproxy/templates/haproxy.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ frontend {{ frontend.get('name', frontend_name) }}
426426
maxconn {{ frontend.maxconn }}
427427
{%- endif %}
428428
{%- if 'timeouts' in frontend %}
429-
{%- for timeout in frontend.timeouts %}
430-
timeout {{ timeout }}
429+
{%- for timeout_type, timeout_value in frontend.timeouts.items() %}
430+
timeout {{ timeout_type }} {{ timeout_value }}
431431
{%- endfor %}
432432
{%- endif %}
433433
{%- if 'options' in frontend %}
@@ -523,8 +523,8 @@ backend {{ backend.get('name', backend_name) }}
523523
balance {{ backend.balance }}
524524
{%- endif %}
525525
{%- if 'timeouts' in backend %}
526-
{%- for timeout in backend.timeouts %}
527-
timeout {{ timeout }}
526+
{%- for timeout_type, timeout_value in backend.timeouts.items() %}
527+
timeout {{ timeout_type }} {{ timeout_value }}
528528
{%- endfor %}
529529
{%- endif %}
530530
{%- if 'options' in backend %}

0 commit comments

Comments
 (0)