1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

Use format as DRIVER when importing appliances form Sunstone, only for KVM hypervisor

This commit is contained in:
Daniel Molina 2012-10-23 15:33:51 +02:00
parent e7fda4c9fe
commit e7e4632bd1

@ -48,6 +48,10 @@ var market_actions = {
$('select#img_type', $create_image_dialog).val('OS');
$('select#img_type', $create_image_dialog).trigger('change');
if (response['files'][0]['hypervisor'] == "KVM") {
$('#img_driver', $create_image_dialog).val(response['files'][0]['format'])
}
//remove any options from the custom vars dialog box
$("#custom_var_image_box",$create_image_dialog).empty();