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:
Alexander Hughes 2019-07-19 13:14:02 -05:00
parent 2765415d82
commit 80d06129d8
1 changed files with 4 additions and 5 deletions

View File

@ -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):