From 7c1c1c66be565ac7137651a67ba429196d545e50 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 11 May 2016 07:42:38 -0400 Subject: [PATCH] Add update boolean parameter to load_tool.validate. --- cwltool/load_tool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cwltool/load_tool.py b/cwltool/load_tool.py index ad7fc6759..79df84745 100644 --- a/cwltool/load_tool.py +++ b/cwltool/load_tool.py @@ -42,8 +42,8 @@ def fetch_document(argsworkflow): def validate_document(document_loader, workflowobj, uri, - enable_dev=False, strict=True, preprocess_only=False): - # type: (Loader, Dict[unicode, Any], unicode, bool, bool, bool) -> Tuple[Loader, Names, Any, Dict[str, str], unicode] + enable_dev=False, strict=True, preprocess_only=False, process_update=True): + # type: (Loader, Dict[unicode, Any], unicode, bool, bool, bool, bool) -> Tuple[Loader, Names, Any, Dict[str, str], unicode] """Validate a CWL document.""" jobobj = None if "cwl:tool" in workflowobj: @@ -93,7 +93,7 @@ def validate_document(document_loader, workflowobj, uri, "$schemas": processobj.get("$schemas", []), "cwlVersion": processobj["cwlVersion"]} - if metadata.get("cwlVersion") != update.LATEST: + if process_update and metadata.get("cwlVersion") != update.LATEST: processobj = update.update( processobj, document_loader, fileuri, enable_dev, metadata)