mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-02 09:47:00 +03:00
fix errr when import a qcow2 app into a vmdk ds (#3473)
Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
parent
f127e717d3
commit
e0f4855d61
@ -213,7 +213,13 @@ module OpenNebula
|
||||
type = ds[xpath]
|
||||
|
||||
if !image_error && !ds_error
|
||||
if type == 'vcenter' && format != 'iso' && format != 'vmdk'
|
||||
if type == 'vcenter' && format == 'qcow2'
|
||||
image.replace('DEV_PREFIX' => 'sd')
|
||||
image.delete_element('TEMPLATE/FORMAT')
|
||||
image.delete_element('TEMPLATE/DRIVER')
|
||||
|
||||
image.update(image.template_like_str("TEMPLATE"))
|
||||
elsif type == 'vcenter' && format != 'iso' && format != 'vmdk'
|
||||
image.replace('FORMAT' => 'vmdk')
|
||||
elsif type && type != 'vcenter' && format == 'vmdk'
|
||||
image.replace('FORMAT' => type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user