Skip to content

Commit cfc2c00

Browse files
sameeulmr-c
authored andcommitted
Append "_latest" to image id if no tag is present
1 parent 7fa57dd commit cfc2c00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cwltool/singularity.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,14 @@ def is_version_3_10_or_newer() -> bool:
134134

135135

136136
def _normalize_image_id(string: str) -> str:
137+
if ":" not in string:
138+
string+="_latest"
137139
return string.replace("/", "_") + ".img"
138140

139141

140142
def _normalize_sif_id(string: str) -> str:
143+
if ":" not in string:
144+
string+="_latest"
141145
return string.replace("/", "_") + ".sif"
142146

143147

0 commit comments

Comments
 (0)