Skip to content

Commit abd85fb

Browse files
author
Peter Amstutz
committed
Revert bad fix.
1 parent 3daa422 commit abd85fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cwltool/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ def load_tool(argsworkflow, updateonly, strict, makeTool, debug,
271271
fileuri, urifrag = urlparse.urldefrag(uri)
272272
workflowobj = document_loader.fetch(fileuri)
273273
if isinstance(workflowobj, list):
274-
workflowobj = {"cwlVersion": "https://w3id.org/cwl/cwl#draft-3",
274+
# bare list without a version must be treated as draft-2
275+
workflowobj = {"cwlVersion": "https://w3id.org/cwl/cwl#draft-2",
275276
"id": fileuri,
276-
"$graph": workflowobj}
277+
"@graph": workflowobj}
277278

278279
if "cwl:tool" in workflowobj:
279280
jobobj = workflowobj

0 commit comments

Comments
 (0)