mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 05:27:20 +09:00
Use format as DRIVER when importing appliances form Sunstone, only for KVM hypervisor
This commit is contained in:
1 parent
e7fda4c9fe
commit
e7e4632bd1
1 file changed
+4
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user