Skip to content

Commit 478c2ff

Browse files
author
Peter Amstutz
authored
Fix secondaryFiles v1.1 updater (#1131)
1 parent 5c7799a commit 478c2ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltool/update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def rewrite_requirements(t):
4747

4848
def update_secondaryFiles(t):
4949
if isinstance(t, MutableSequence):
50-
return [{"pattern": p} for p in t]
50+
return [update_secondaryFiles(p) for p in t]
51+
elif isinstance(t, MutableMapping):
52+
return t
5153
else:
5254
return {"pattern": t}
5355

0 commit comments

Comments
 (0)