Skip to content

Commit b152532

Browse files
Fix entryname and writable
In InitialWorkDirRequirement section if listing is set as Expression that returns list of objects like [ { "entry": inputs.input_name } ] where input_name is File, cwltool shouldn't fail trying to get "entryname" or "writable" fields from the Dict.
1 parent dec5440 commit b152532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ def rm_pending_output_callback(output_callbacks, jobcachepending,
372372
"writable": t.get("writable")
373373
}
374374
else:
375-
if t["entryname"] or t["writable"]:
375+
if t.get("entryname") or t.get("writable"):
376376
t = copy.deepcopy(t)
377-
if t["entryname"]:
377+
if t.get("entryname"):
378378
t["entry"]["basename"] = t["entryname"]
379379
t["entry"]["writable"] = t.get("writable")
380380
ls[i] = t["entry"]

0 commit comments

Comments
 (0)