From 4a6dd19739605df27265ac9f9a4b6045d6df1309 Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Tue, 21 Mar 2023 11:09:01 +0100 Subject: [PATCH] templates: do not assume optional services' presence in tenant conf (#75645) --- roles/deploy-tenants/templates/cook-recipe.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/deploy-tenants/templates/cook-recipe.j2 b/roles/deploy-tenants/templates/cook-recipe.j2 index c4454e6..ef4e928 100644 --- a/roles/deploy-tenants/templates/cook-recipe.j2 +++ b/roles/deploy-tenants/templates/cook-recipe.j2 @@ -32,37 +32,37 @@ "template_name": "{{wcs_skeleton_filename}}", "title": "Démarches" }}, - {% if tenants_conf['dev-passerelle'] %} + {% if 'dev-passerelle' in tenants_conf and tenants_conf['dev-passerelle'] %} {"create-passerelle": { "url": "https://{{tenants_conf['dev-passerelle']}}/", "title": "Passerelle" }}, {% endif %} - {% if tenants_conf['dev-fargo'] %} + {% if 'dev-fargo' in tenants_conf and tenants_conf['dev-fargo'] %} {"create-fargo": { "url": "https://{{tenants_conf['dev-fargo']}}/", "title": "Porte-documents" }}, {% endif %} - {% if tenants_conf['dev-chrono'] %} + {% if 'dev-chrono' in tenants_conf and tenants_conf['dev-chrono'] %} {"create-chrono": { "url": "https://{{tenants_conf['dev-chrono']}}/", "title": "Agendas" }}, {% endif %} - {% if tenants_conf['dev-bijoe'] %} + {% if 'dev-bijoe' in tenants_conf and tenants_conf['dev-bijoe'] %} {"create-bijoe": { "url": "https://{{tenants_conf['dev-bijoe']}}/", "title": "Statistiques" }}, {% endif %} - {% if tenants_conf['dev-welco'] %} + {% if 'dev-welco' in tenants_conf and tenants_conf['dev-welco'] %} {"create-welco": { "url": "https://{{tenants_conf['dev-welco']}}/", "title": "Courrier" }}, {% endif %} - {% if tenants_conf['dev-lingo'] %} + {% if 'dev-lingo' in tenants_conf and tenants_conf['dev-lingo'] %} {"create-lingo": { "url": "https://{{tenants_conf['dev-lingo']}}/", "title": "Paiements"