Skip to content

Commit aeb1eae

Browse files
committed
pythonbuild: change Docker image tar filename calculation
This is more resilient to dots being in the image name.
1 parent fd54085 commit aeb1eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonbuild/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def ensure_docker_image(client, fh, image_path=None):
4747
raise Exception("unable to determine built Docker image")
4848

4949
if image_path:
50-
tar_path = image_path.with_suffix(".tar")
50+
tar_path = pathlib.Path(str(image_path) + ".tar")
5151
with tar_path.open("wb") as fh:
5252
for chunk in client.images.get(image).save():
5353
fh.write(chunk)

0 commit comments

Comments
 (0)