From 88e42929fd9b3e551fafb97cc2c34b40e3495e7f Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 16 Mar 2025 20:10:55 +0000
Subject: [PATCH] Fix Jinja2 filter, again

---
 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 5a55e18f..8fcce193 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() | selectattr('public_endpoints', 'defined') | 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', 'defined') | selectattr('enable_api_proxy') | map(attribute='auth_service') }}"
 
 - name: Configure api-proxy auth services
   copy:
-- 
GitLab