From 9165cdd7c3208554752df63eb18fc9f9b0c4b700 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 16 Mar 2025 20:04:34 +0000
Subject: [PATCH] Fix jinja2 filter

---
 roles/float-infra-nginx/tasks/api-proxy.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/float-infra-nginx/tasks/api-proxy.yml b/roles/float-infra-nginx/tasks/api-proxy.yml
index 05b5e3ac..5a55e18f 100644
--- a/roles/float-infra-nginx/tasks/api-proxy.yml
+++ b/roles/float-infra-nginx/tasks/api-proxy.yml
@@ -1,7 +1,7 @@
 ---
 
 - set_fact:
-    api_proxy_auth_services: "{{ services.values() | map(attribute='public_endpoints') | flatten | selectattr('enable_api_proxy') | map(attribute='auth_service') }}"
+    api_proxy_auth_services: "{{ services.values() | selectattr('public_endpoints', 'defined') | map(attribute='public_endpoints') | flatten | selectattr('enable_api_proxy') | map(attribute='auth_service') }}"
 
 - name: Configure api-proxy auth services
   copy:
-- 
GitLab