Skip to content

Commit 3e85fe9

Browse files
r-heimannkddejong
andauthored
Update src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py
Co-authored-by: Kevin DeJong <[email protected]>
1 parent 737d15a commit 3e85fe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cfnlint/rules/resources/stepfunctions/StateMachineDefinition.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def _validate_start_at(
144144

145145
if state_type == "Parallel":
146146
branches = state.get("Branches", [])
147+
if not isinstance(branches, list):
148+
continue
147149
for idx, branch in enumerate(branches):
148150
branch_path = deque(["States", state_name, "Branches", idx])
149151
yield from self._validate_start_at(branch, k, add_path_to_message, branch_path)

0 commit comments

Comments
 (0)