From f7e25d679051138b9b09afa1e7f82faf7d838281 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Mon, 6 Jan 2025 10:10:18 +0100 Subject: [PATCH] Fix `teams()` to gracefully handle missing `syn.owner` Use `syn_owner` instead of directly reading the parameter to skip the owner team if `includeOwner=false`. --- syn-teams.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syn-teams.libsonnet b/syn-teams.libsonnet index 5669b5f..2504df8 100644 --- a/syn-teams.libsonnet +++ b/syn-teams.libsonnet @@ -184,7 +184,7 @@ local teams(includeOwner=false) = team for team in std.objectFields(teamApplicationMap) if - (includeOwner || team != inv.parameters.syn.owner) && + (includeOwner || team != syn_owner) && std.length(teamApplicationMap[team]) > 0 ];