Skip to content

Commit

Permalink
fix: deserializing until and foreach activities in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
arjendev committed Dec 1, 2023
1 parent c6ee8a2 commit 36b5592
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _get_activity_from_activity_data(activity_data: dict) -> Activity:
if activity_data["type"] == "AppendVariable":
return AppendVariableActivity(**activity_data)
elif activity_data["type"] == "Until":
activities = _get_activity_from_activities_data(activity_data["activities"])
activities = _get_activity_from_activities_data(activity_data["typeProperties"]["activities"])
return UntilActivity(activities=activities, **activity_data)
elif activity_data["type"] == "ExecutePipeline":
return ExecutePipelineActivity(**activity_data)
Expand All @@ -29,7 +29,7 @@ def _get_activity_from_activity_data(activity_data: dict) -> Activity:
if_true_activities=if_true_activities, if_false_activities=if_false_activities, **activity_data
)
elif activity_data["type"] == "ForEach":
child_activities = _get_activity_from_activities_data(activity_data["activities"])
child_activities = _get_activity_from_activities_data(activity_data["typeProperties"]["activities"])
return ForEachActivity(activities=child_activities, **activity_data)
elif activity_data["type"] == "Switch":
default_activities = _get_activity_from_activities_data(activity_data["typeProperties"]["defaultActivities"])
Expand Down

0 comments on commit 36b5592

Please sign in to comment.