Skip to content

Commit

Permalink
[fix] default yaml.dump to block style (#2591)
Browse files Browse the repository at this point in the history
* [fix] default every field to block style

* [change] per comment

* [fix] per comment
  • Loading branch information
l1990790120 authored and k8s-ci-robot committed Nov 19, 2019
1 parent d72f435 commit 07296bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def _write_workflow(workflow: Dict[Text, Any], package_path: Text = None):
will be returned.
"""
yaml.Dumper.ignore_aliases = lambda *args : True
yaml_text = yaml.dump(workflow, default_flow_style=False)
yaml_text = yaml.dump(workflow, default_flow_style=False, default_style='|')

if '{{pipelineparam' in yaml_text:
raise RuntimeError(
Expand Down

0 comments on commit 07296bc

Please sign in to comment.