From e17f65e947ea86f63f58e8c6f4e72e6f8952d514 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Fri, 19 Apr 2024 22:27:33 +0200 Subject: [PATCH] use current directory --- upload-ami/src/upload_ami/upload_coldsnap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload-ami/src/upload_ami/upload_coldsnap.py b/upload-ami/src/upload_ami/upload_coldsnap.py index da470be..2b54fdb 100644 --- a/upload-ami/src/upload_ami/upload_coldsnap.py +++ b/upload-ami/src/upload_ami/upload_coldsnap.py @@ -99,7 +99,8 @@ def upload_coldsnap( logging.info(f"Uploading image to coldsnap") image_file_vhd = Path(image_info["file"]) - image_file_raw = image_file_vhd.with_suffix(".raw") + image_file_raw = Path(image_file_vhd.with_suffix(".raw").name) + subprocess.check_call( ["qemu-img", "convert", "-O", "raw", image_file_vhd, image_file_raw]