[fix] default yaml.dump to block style (#2591)

* [fix] default every field to block style

* [change] per comment

* [fix] per comment
This commit is contained in:
Lulu Cheng 2019-11-18 20:55:41 -06:00 committed by Kubernetes Prow Robot
parent d72f435be5
commit 07296bc5ba
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ class Compiler(object):
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(