[ARVADOS] created: 1.3.0-59-gfef817dc5
Git user
git at public.curoverse.com
Fri Dec 14 16:00:40 EST 2018
at fef817dc5d6d1e0160c6c14ba4f41581e241f33a (commit)
commit fef817dc5d6d1e0160c6c14ba4f41581e241f33a
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Fri Dec 14 15:59:34 2018 -0500
11419: Read JSON files in binary mode.
Files opened in text mode do not have a size() method.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/sdk/cwl/arvados_cwl/runner.py b/sdk/cwl/arvados_cwl/runner.py
index 1d5f98f20..4b3275fa3 100644
--- a/sdk/cwl/arvados_cwl/runner.py
+++ b/sdk/cwl/arvados_cwl/runner.py
@@ -461,7 +461,7 @@ class Runner(Process):
keep_client=self.arvrunner.keep_client,
num_retries=self.arvrunner.num_retries)
if "cwl.output.json" in outc:
- with outc.open("cwl.output.json") as f:
+ with outc.open("cwl.output.json", "rb") as f:
if f.size() > 0:
outputs = json.load(f)
def keepify(fileobj):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list