Skip to content

Commit a06f9a2

Browse files
spintomr-c
authored andcommitted
Fix normalization of image id
Apptainer will replace the ':' character with an '_'
1 parent 0cbbd92 commit a06f9a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cwltool/singularity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ def is_version_3_10_or_newer() -> bool:
157157
def _normalize_image_id(string: str) -> str:
158158
if ":" not in string:
159159
string += "_latest"
160-
return string.replace("/", "_") + ".img"
160+
return string.replace(":", "_") + ".img"
161161

162162

163163
def _normalize_sif_id(string: str) -> str:
164164
if ":" not in string:
165165
string += "_latest"
166-
return string.replace("/", "_") + ".sif"
166+
return string.replace(":", "_") + ".sif"
167167

168168

169169
@mypyc_attr(allow_interpreted_subclasses=True)

0 commit comments

Comments
 (0)