Skip to content

Commit 7726eee

Browse files
Merge pull request #60 from /issues/59-wdlVersioning
Amend WDL version checking. Resolves #59.
2 parents e20fda0 + 5ad56a6 commit 7726eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wes_service/toil_wes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ def run(self, request, tempdir, opts):
195195
wftype = request['workflow_type'].lower().strip()
196196
version = request['workflow_type_version']
197197

198-
if version != 'v1.0' and wftype in ('cwl', 'wdl'):
199-
raise RuntimeError('workflow_type "cwl", "wdl" requires '
198+
if version != 'v1.0' and wftype == 'cwl':
199+
raise RuntimeError('workflow_type "cwl" requires '
200200
'"workflow_type_version" to be "v1.0": ' + str(version))
201201
if version != '2.7' and wftype == 'py':
202202
raise RuntimeError('workflow_type "py" requires '
@@ -286,7 +286,7 @@ def GetServiceInfo(self):
286286
return {
287287
'workflow_type_versions': {
288288
'CWL': {'workflow_type_version': ['v1.0']},
289-
'WDL': {'workflow_type_version': ['v1.0']},
289+
'WDL': {'workflow_type_version': ['draft-2']},
290290
'PY': {'workflow_type_version': ['2.7']}
291291
},
292292
'supported_wes_versions': '0.3.0',

0 commit comments

Comments
 (0)