Skip to content

Commit 89c2eae

Browse files
committed
(#14) fixing workflow YAML file name issue for pegasus log parser
1 parent 15db281 commit 89c2eae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

workflowhub/trace/logs/pegasus.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ def _parse_braindump(self):
123123

124124
def _parse_workflow(self):
125125
"""Parse the Workflow file."""
126-
workflow_file = '{}/workflow.yml'.format(self.submit_dir)
126+
workflows_file_list = self._fetch_all_files('yml', '*workflow')
127127

128-
if not os.path.exists(workflow_file):
129-
raise OSError('Unable to find workflow file: {}'.format(workflow_file))
128+
if len(workflows_file_list) < 1:
129+
raise OSError('Unable to find workflow file.')
130+
131+
workflow_file = workflows_file_list[0]
130132

131133
with open(workflow_file) as f:
132134
data = yaml.load(f, Loader=yaml.SafeLoader)

0 commit comments

Comments
 (0)