Skip to content

Commit 8eb5ebb

Browse files
Nambrokgthvn1
andcommitted
In Progress
Signed-off-by: Damien Thenot <damien.thenot@vates.tech> Co-authored-by: Guillaume <guillaume.thouvenin@vates.tech>
1 parent ca10590 commit 8eb5ebb

File tree

2 files changed

+667
-0
lines changed

2 files changed

+667
-0
lines changed

drivers/cowutil.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,12 @@ def getVdiTypeFromImageFormat(image_format: ImageFormat) -> str:
314314

315315
def getCowUtil(vdi_type: str) -> CowUtil:
316316
import vhdutil
317+
import qcow2util
317318

318319
if getImageFormatFromVdiType(vdi_type) in (ImageFormat.RAW, ImageFormat.VHD):
319320
return vhdutil.VhdUtil()
320321

322+
if getImageFormatFromVdiType(vdi_type) in (ImageFormat.QCOW2):
323+
return qcow2util.QCowUtil()
324+
321325
assert False, f"Unsupported VDI type: {vdi_type}"

0 commit comments

Comments
 (0)