Skip to content

Commit 165283a

Browse files
author
Peter Amstutz
committed
Merge branch 'master' into cache-jobs
2 parents cbb6bd9 + 1a0e556 commit 165283a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cwltool/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,11 @@ def main(argsl=None,
624624
)
625625
# This is the workflow output, it needs to be written
626626
if out is not None:
627-
stdout.write(json.dumps(out, indent=4))
627+
if isinstance(out, basestring):
628+
stdout.write(out)
629+
else:
630+
stdout.write(json.dumps(out, indent=4))
631+
stdout.write("\n")
628632
stdout.flush()
629633
else:
630634
return 1

0 commit comments

Comments
 (0)