Skip to content

Commit 4210788

Browse files
committed
only enable stream shortcuts for CLT outputs w/ no outputBindings
1 parent c59f2c4 commit 4210788

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cwltool/load_tool.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ def _convert_stdstreams_to_files(workflowobj):
4646
# type: (Union[Dict[unicode, Any], List[Dict[unicode, Any]]) -> None
4747

4848
if isinstance(workflowobj, dict):
49-
if 'outputs' in workflowobj:
49+
if (workflowobj['class'] == 'CommandLineTool'
50+
and 'outputs' in workflowobj):
5051
for out in workflowobj['outputs']:
5152
for streamtype in ['stdout', 'stderr']:
5253
if out['type'] == streamtype:
54+
if out['outputBinding']:
55+
raise validate.ValidateException(
56+
"Not allowed to specify outputBinding when"
57+
" using %s shortcut." % streamtype)
5358
if streamtype in workflowobj:
5459
filename = workflowobj[streamtype]
5560
else:

0 commit comments

Comments
 (0)