Skip to content

Commit 5fe90dc

Browse files
author
Peter Amstutz
committed
Bug fix for nested inputBinding valueFrom. Also encode CreateFileRequirement
output as utf-8.
1 parent b560933 commit 5fe90dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def bind_input(self, schema, datum, lead_pos=[], tail_pos=[]):
5757
else:
5858
binding["position"] = aslist(lead_pos) + [0] + aslist(tail_pos)
5959

60-
if "valueFrom" in binding:
60+
if "valueFrom" in binding and "do_eval" not in binding:
6161
binding["do_eval"] = binding["valueFrom"]
6262
binding["valueFrom"] = datum
6363

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def run(self, dry_run=False, pull_image=True, rm_container=True,
172172
os.symlink(src, dst)
173173
elif isinstance(entry, (str, unicode)):
174174
with open(os.path.join(self.outdir, t), "w") as fout:
175-
fout.write(entry)
175+
fout.write(entry.encode("utf-8"))
176176
else:
177177
raise Exception("Unhandled type %s", type(entry))
178178

0 commit comments

Comments
 (0)