Skip to content

Commit 47435d7

Browse files
author
Peter Amstutz
authored
Don't resolve format fields on initial load of job order object. (#1142)
1 parent d1105e7 commit 47435d7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cwltool/load_tool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
u"cwltool": "http://commonwl.org/cwltool#",
4141
u"path": {u"@type": u"@id"},
4242
u"location": {u"@type": u"@id"},
43-
u"format": {u"@type": u"@id"},
4443
u"id": u"@id"
4544
} # type: ContextType
4645

cwltool/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def path_to_loc(p):
358358
del p["path"]
359359

360360
ns = {} # type: Dict[Text, Union[Dict[Any, Any], Text, Iterable[Text]]]
361+
ns.update(job_order_object.get("$namespaces", {}))
361362
ns.update(process.metadata.get("$namespaces", {}))
362363
ld = Loader(ns)
363364

0 commit comments

Comments
 (0)