From 588e666c178a571975a4d6429d78e38130960c4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o?= <theo@le-filament.com>
Date: Wed, 28 Sep 2022 14:50:44 +0200
Subject: [PATCH] fix: mitigate inexistent inventory group

---
 templates/traefik.toml.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/traefik.toml.j2 b/templates/traefik.toml.j2
index 5e704aa..2b725b0 100644
--- a/templates/traefik.toml.j2
+++ b/templates/traefik.toml.j2
@@ -10,7 +10,7 @@
   [entryPoints.websecure]
     address = ":443"
     [entryPoints.websecure.http]
-      middlewares = ["security-headers@file"{% if inventory_hostname not in groups.docker_tuleap %}, "limit@file"{% endif %}, "compression@file"]
+      middlewares = ["security-headers@file"{% if inventory_hostname not in groups.docker_tuleap | default([]) %}, "limit@file"{% endif %}, "compression@file"]
       [entryPoints.websecure.http.tls]
         options = "default"
         certResolver = "le"
-- 
GitLab