[ARVADOS] created: 7f9a68fbef2de18f274437b6161cd7269d87f04e
Git user
git at public.curoverse.com
Wed Dec 28 15:50:25 EST 2016
at 7f9a68fbef2de18f274437b6161cd7269d87f04e (commit)
commit 7f9a68fbef2de18f274437b6161cd7269d87f04e
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Wed Dec 28 15:50:20 2016 -0500
10722: Issue better error when 'id' is missing.
diff --git a/sdk/cwl/arvados_cwl/arvworkflow.py b/sdk/cwl/arvados_cwl/arvworkflow.py
index 8c1db3a..9e70a6e 100644
--- a/sdk/cwl/arvados_cwl/arvworkflow.py
+++ b/sdk/cwl/arvados_cwl/arvworkflow.py
@@ -71,6 +71,9 @@ class ArvadosWorkflow(Workflow):
kwargs["work_api"] = self.work_api
req, _ = self.get_requirement("http://arvados.org/cwl#RunInSingleContainer")
if req:
+ with SourceLine(self.tool, None, WorkflowException):
+ if "id" not in self.tool:
+ raise WorkflowException("%s object must have 'id'" % (self.tool["class"]))
document_loader, workflowobj, uri = (self.doc_loader, self.doc_loader.fetch(self.tool["id"]), self.tool["id"])
with Perf(metrics, "subworkflow upload_deps"):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list