From e7e4632bd11385c826cb4182c2f8b4e44efa547e Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 23 Oct 2012 15:33:51 +0200 Subject: [PATCH] Use format as DRIVER when importing appliances form Sunstone, only for KVM hypervisor --- src/sunstone/public/js/plugins/marketplace-tab.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sunstone/public/js/plugins/marketplace-tab.js b/src/sunstone/public/js/plugins/marketplace-tab.js index a8bb9dfb2c..e08f68449a 100644 --- a/src/sunstone/public/js/plugins/marketplace-tab.js +++ b/src/sunstone/public/js/plugins/marketplace-tab.js @@ -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();