Don't expect input to be in every workflow in doc generation

Change-Id: I7175af3d6154b383513d54f5a4848f84a8acb168
This commit is contained in:
Dougal Matthews 2016-08-29 11:02:52 +01:00
parent b726d8434f
commit 81514076c8
1 changed files with 10 additions and 9 deletions

View File

@ -57,15 +57,16 @@ def _workbook_to_rst(name, workbook):
yield ' {}'.format(workflow['description'])
yield ''
yield ' Workflow inputs:'
yield ''
for input_param in workflow['input']:
try:
yield ' :input {}: Default: {}'.format(
*input_param.items()[0])
except:
yield ' :input {}: Required.'.format(input_param)
yield ''
if 'input' in workflow:
yield ' Workflow inputs:'
yield ''
for input_param in workflow['input']:
try:
yield ' :input {}: Default: {}'.format(
*input_param.items()[0])
except:
yield ' :input {}: Required.'.format(input_param)
yield ''
def get_workbooks():