Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Qian Huang committed Jan 14, 2025
1 parent 45c6a2f commit 7dfa81e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metaflow/plugins/events_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ def format_deploytime_value(self):
# Entire trigger is a function (returns either string or dict)
old_trig = trigger
if isinstance(trigger, DeployTimeField):
# convert the trigger to string or dict
trigger = deploy_time_eval(trigger)
if is_stringish(trigger):
pass
Expand Down Expand Up @@ -628,6 +629,7 @@ def format_deploytime_value(self):
"The *project_branch* attribute of the *flow* is not a string"
)
trigger = result
# effect is to set all fields to None if they don't exist.
if isinstance(trigger, dict):
trigger["fq_name"] = trigger.get("fq_name")
trigger["project"] = trigger.get("project")
Expand Down

0 comments on commit 7dfa81e

Please sign in to comment.