diff --git a/stages/org.osbuild.ovf b/stages/org.osbuild.ovf index 49b2cecc..c14f3562 100755 --- a/stages/org.osbuild.ovf +++ b/stages/org.osbuild.ovf @@ -117,7 +117,7 @@ OVF_TEMPLATE = """ def virtual_size(vmdk): cmd = ["qemu-img", "info", "--output=json", vmdk] - res = subprocess.run(cmd, check=True, capture_output=True) + res = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, encoding="utf8") if res.returncode != 0: raise RuntimeError("Unable to determine vmdk size") return json.loads(res.stdout)["virtual-size"]