Skip to content

Commit

Permalink
Set default_flow_style for yaml jinja filter
Browse files Browse the repository at this point in the history
  • Loading branch information
enykeev committed Nov 25, 2016
1 parent 02e3c95 commit cbd6097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion st2common/st2common/jinja/filters/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ def to_json_string(value, indent=4, sort_keys=False, separators=(',', ':')):


def to_yaml_string(value, indent=4, allow_unicode=True):
return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode)
return yaml.safe_dump(value, indent=indent, allow_unicode=allow_unicode,
default_flow_style=False)

0 comments on commit cbd6097

Please sign in to comment.