From 511c4feaf0705114b08104b2933ee56b67e87ac8 Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Sun, 3 Aug 2025 04:11:24 -0400 Subject: [PATCH] fix: Remove invalid 'bool' filter from Jinja2 template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The privacy-monitor.sh.j2 template was using '| bool' which is not a valid Jinja2 filter. The 'bool' is a built-in Python function, not a Jinja2 filter. Fixed by removing the '| bool' filter and directly outputting the boolean variables as they will be rendered correctly by Jinja2. This resolves the template syntax error that was causing CI tests to fail: "No filter named 'bool'" error in privacy monitoring script template. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- roles/privacy/templates/privacy-monitor.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/privacy/templates/privacy-monitor.sh.j2 b/roles/privacy/templates/privacy-monitor.sh.j2 index 90bf16ac..dfe71dd7 100644 --- a/roles/privacy/templates/privacy-monitor.sh.j2 +++ b/roles/privacy/templates/privacy-monitor.sh.j2 @@ -79,7 +79,7 @@ fi echo -e "\n${YELLOW}Privacy Configuration Summary:${NC}" echo " Log retention: {{ privacy_log_rotation.max_age }} days" echo " Max log size: {{ privacy_log_rotation.max_size }}MB" -echo " VPN log filtering: {{ privacy_log_filtering.exclude_vpn_logs | bool }}" -echo -e " History clearing: {{ privacy_history_clearing.clear_bash_history | bool }}" +echo " VPN log filtering: {{ privacy_log_filtering.exclude_vpn_logs }}" +echo -e " History clearing: {{ privacy_history_clearing.clear_bash_history }}" echo -e "\n${GREEN}Privacy monitoring complete${NC}" \ No newline at end of file