Skip to content

Commit 7416868

Browse files
authored
Continue to walk the FindInMap components in transform (#3203)
1 parent 2f45e3d commit 7416868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cfnlint/template/transforms/_language_extensions.py

+3
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def _walk(self, item: Any, params: MutableMapping[str, Any], cfn: Any):
169169
except Exception as e: # pylint: disable=broad-exception-caught
170170
# We couldn't resolve the FindInMap so we are going to leave it as it is
171171
LOGGER.debug("Transform and Fn::FindInMap error: %s", {str(e)})
172+
for i, el in enumerate(v):
173+
v[i] = self._walk(el, params, cfn)
174+
obj[k] = v
172175
elif k == "Ref":
173176
if isinstance(v, str):
174177
if v in params:

0 commit comments

Comments
 (0)