From aa586e0e2c77b4e8cfa43389efaa96a309500ae2 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 18 Dec 2025 16:28:02 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 43: Unnecessary lambda Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- cli/create/role.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/create/role.py b/cli/create/role.py index 50b0fb60e5..b76947259d 100644 --- a/cli/create/role.py +++ b/cli/create/role.py @@ -69,7 +69,7 @@ def render_templates(src_dir, dst_dir, context): keep_trailing_newline=True, autoescape=select_autoescape(["html", "xml"]), ) - env.filters["bool"] = lambda x: bool(x) + env.filters["bool"] = bool env.filters["get_entity_name"] = get_entity_name for root, _, files in os.walk(src_dir):