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

This commit is contained in:
Daniel Molina committed 2012-10-23 15:34:10 +02:00
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();