mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-31 09:29:38 +00:00
wvmStorage.create_volume, wvmCreate.create_volume image naming respects image/volume format (qcow,qcow2)
This commit is contained in:
committed by
catborise
parent
1bd2c558f2
commit
a457c262e1
@@ -213,7 +213,10 @@ class wvmStorage(wvmConnect):
|
||||
if vol_fmt == 'unknown':
|
||||
vol_fmt = 'raw'
|
||||
if storage_type == 'dir':
|
||||
name += '.img'
|
||||
if vol_fmt in ('qcow', 'qcow2'):
|
||||
name += '.' + vol_fmt
|
||||
else:
|
||||
name += '.img'
|
||||
alloc = 0
|
||||
xml = """
|
||||
<volume>
|
||||
|
||||
Reference in New Issue
Block a user