From dc102868390512d458718f762aed32b09383d832 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Tue, 27 Aug 2024 13:37:14 -0700 Subject: [PATCH] Add params to findinmap value --- src/cfnlint/template/transforms/_language_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py index 3733542626..060309e643 100644 --- a/src/cfnlint/template/transforms/_language_extensions.py +++ b/src/cfnlint/template/transforms/_language_extensions.py @@ -339,7 +339,7 @@ def value( ): for k, v in cfn.template.get("Mappings", {}).items(): if isinstance(v, dict): - if t_map[1].value(cfn) in v: + if t_map[1].value(cfn, params) in v: t_map[0] = _ForEachValue.create(k) mapping = v break