Skip to content

Commit c7d2384

Browse files
author
Anton Khodak
committed
Fix valueFrom field overriding default binding for arrays
1 parent 83dc0ec commit c7d2384

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cwltool/builder.py

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ def bind_input(self, schema, datum, lead_pos=None, tail_pos=None):
8787
binding["position"] = aslist(lead_pos) + [0] + aslist(tail_pos)
8888

8989
binding["datum"] = datum
90+
if "valueFrom" in binding:
91+
for bi in bindings:
92+
bi["position"] = binding["position"] + bi["position"]
93+
bindings.append(binding)
94+
95+
return bindings
9096

9197
# Handle union types
9298
if isinstance(schema["type"], list):

0 commit comments

Comments
 (0)