Bugfix render to stdout if save loc not used
Render when no save location is saved is attempting to do a yaml.dump_all to None. Changing to a click.echo() Change-Id: I3e1bd9e1e9bfd09ab234e38f95cd4561bc2b41c9
This commit is contained in:
parent
2765415d82
commit
80d06129d8
@ -127,11 +127,10 @@ def render(site_name, output_stream, validate):
|
||||
explicit_start=True,
|
||||
explicit_end=True)
|
||||
else:
|
||||
yaml.dump_all(rendered_documents,
|
||||
output_stream,
|
||||
default_flow_style=False,
|
||||
explicit_start=True,
|
||||
explicit_end=True)
|
||||
click.echo(yaml.dump_all(rendered_documents,
|
||||
default_flow_style=False,
|
||||
explicit_start=True,
|
||||
explicit_end=True))
|
||||
|
||||
|
||||
def list_(output_stream):
|
||||
|
Loading…
x
Reference in New Issue
Block a user