Skip to content

Commit b420246

Browse files
author
Peter Amstutz
committed
Update by default.
1 parent 7ec22e1 commit b420246

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltool/load_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ def resolve_and_validate_document(loadingContext,
298298
if loadingContext.do_validate:
299299
schema.validate_doc(avsc_names, processobj, document_loader, loadingContext.strict)
300300

301-
if loadingContext.do_update:
301+
# None means default behavior (do update)
302+
if loadingContext.do_update in (True, None):
302303
processobj = cast(CommentedMap, cmap(update.update(
303304
processobj, document_loader, fileuri, loadingContext.enable_dev, metadata)))
304305
if isinstance(processobj, MutableMapping):

0 commit comments

Comments
 (0)