Skip to content

Commit

Permalink
fix(sdk): loop argument jsonified, not stringified (kubeflow#657)
Browse files Browse the repository at this point in the history
Signed-off-by: Michalina Kotwica <michalina.kotwica.ibm@gmail.com>
  • Loading branch information
Udiknedormin authored Jul 6, 2021
1 parent 77963c3 commit 95a961c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp_tekton/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _group_to_dag_template(self, group, inputs, outputs, dependencies, pipeline_
sanitized_tasks.append(c_dict)
loop_args_str_value = json.dumps(sanitized_tasks, sort_keys=True)
else:
loop_args_str_value = str(loop_arg_value)
loop_args_str_value = json.dumps(loop_arg_value)

self.loops_pipeline[group_name]['spec']['params'] = [{
"name": sub_group.loop_args.full_name,
Expand Down

0 comments on commit 95a961c

Please sign in to comment.