Skip to content

Commit 479c48a

Browse files
committed
fix indention error and use fragment identifier
1 parent e05409e commit 479c48a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cwltool/load_tool.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ def _convert_stdstreams_to_files(workflowobj):
7070
raise ValidationException(
7171
"Not allowed to specify inputBinding when"
7272
" using stdin shortcut.")
73-
if 'stdin' in workflowobj:
74-
raise ValidationException(
75-
"Not allowed to specify stdin path when"
76-
" using stdin type shortcut.")
77-
else:
78-
workflowobj['stdin'] = \
79-
"${inputs.%s.path}" % inp['id']
80-
inp['type'] = 'File'
73+
if 'stdin' in workflowobj:
74+
raise ValidationException(
75+
"Not allowed to specify stdin path when"
76+
" using stdin type shortcut.")
77+
else:
78+
workflowobj['stdin'] = \
79+
"$(inputs.%s.path)" % \
80+
inp['id'].rpartition('#')[2]
81+
inp['type'] = 'File'
8182
else:
8283
for entry in workflowobj.itervalues():
8384
_convert_stdstreams_to_files(entry)

0 commit comments

Comments
 (0)