Skip to content

Commit

Permalink
Fix: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudw committed Aug 24, 2024
1 parent 73521f2 commit afef70b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions metaflow/plugins/aip/aip.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ def _create_workflow_yaml(
# Service account is added through webhooks.
workflow["spec"].pop("serviceAccountName", None)

workflow["spec"]["arguments"]["parameters"] = [
dict(name=k, value=json.dumps(v) if isinstance(v, dict) else v)
for k, v in flow_parameters.items()
]
# Parameters with no defaults need to be added to WorkflowTemplates.
# This allows the parameters to be supplied by Workflow that reference the WorkflowTemplate.
workflow["spec"]["arguments"]["parameters"].extend(
Expand Down

0 comments on commit afef70b

Please sign in to comment.