Skip to content

Commit 495e0e6

Browse files
author
Peter Amstutz
committed
Handle jsonpointer to context.
1 parent a0c3976 commit 495e0e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cwltool/update.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,13 @@ def _draftDraft3dev1toDev2(doc):
104104
else:
105105
if not sp[0]:
106106
sp.pop(0)
107-
sp.pop(0)
107+
front = sp.pop(0)
108108
sp = [str(i) if digits.match(i) else "'"+i+"'"
109109
for i in sp]
110-
doc[a] = "$(inputs[%s])" % ']['.join(sp)
110+
if front == "job":
111+
doc[a] = "$(inputs[%s])" % ']['.join(sp)
112+
elif front == "context":
113+
doc[a] = "$(self[%s])" % ']['.join(sp)
111114
else:
112115
sc = updateScript(ent["script"])
113116
if sc[0] == "{":

0 commit comments

Comments
 (0)