Skip to content

Commit

Permalink
Merge pull request #47 from paulaidt/main
Browse files Browse the repository at this point in the history
Fixed detection of sif report from ancient singularity 3.5
  • Loading branch information
jmfernandez authored Jul 12, 2023
2 parents 72760f6 + 4f2a020 commit b61d982
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wfexs_backend/singularity_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,13 @@ def _getContainerArchitecture(

cells = re.split(r"\s*\|\s*", line.strip())
if parse_header:
for i_cell, cell_name in enumerate(cells):
if cell_name.startswith("TYPE"):
type_column_id = i_cell
elif cell_name.startswith("ID"):
column_id = i_cell
parse_header = False
if cells[0].startswith("ID"):
for i_cell, cell_name in enumerate(cells):
if cell_name.startswith("TYPE"):
type_column_id = i_cell
elif cell_name.startswith("ID"):
column_id = i_cell
parse_header = False
elif cells[type_column_id].startswith("FS"):
data_bundle_id = cells[column_id]
break
Expand Down

0 comments on commit b61d982

Please sign in to comment.