From 5f49433f6c93e45f1e253d9981d4b23a098c9478 Mon Sep 17 00:00:00 2001 From: Backslash Date: Fri, 27 Sep 2024 09:15:21 +1000 Subject: [PATCH] Handle empty labels correctly. --- .../custom/matrix-element-call/templates/element-call-labels.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/custom/matrix-element-call/templates/element-call-labels.j2 b/roles/custom/matrix-element-call/templates/element-call-labels.j2 index 7ec9aa164..915ab6e25 100644 --- a/roles/custom/matrix-element-call/templates/element-call-labels.j2 +++ b/roles/custom/matrix-element-call/templates/element-call-labels.j2 @@ -39,6 +39,8 @@ traefik.http.routers.element-call-router.middlewares={{ middlewares | join(',') {% endif %} # Additional labels (if any) specified by the user +{% if matrix_element_call_container_extra_arguments.keys() | length > 0 %} {% for key, value in matrix_element_call_container_extra_arguments.items() %} {{ key }}={{ value }} {% endfor %} +{% endif %}