[Kimchi-devel] [PATCH] Remote ISO attachment: fix UI to accept remote ISO link for cdrom attachment
Aline Manera
alinefm at linux.vnet.ibm.com
Wed Aug 13 01:45:52 UTC 2014
Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>
On 08/12/2014 06:57 AM, lvroyce at linux.vnet.ibm.com wrote:
> From: Royce Lv <lvroyce at linux.vnet.ibm.com>
>
> UI just accept local ISO as cdrom attachment before,
> enable remote ISO link for it.
>
> Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
> ---
> ui/js/src/kimchi.guest_storage_add.main.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ui/js/src/kimchi.guest_storage_add.main.js b/ui/js/src/kimchi.guest_storage_add.main.js
> index 1f4c4bd..a8c5acb 100644
> --- a/ui/js/src/kimchi.guest_storage_add.main.js
> +++ b/ui/js/src/kimchi.guest_storage_add.main.js
> @@ -109,7 +109,7 @@ kimchi.guest_storage_add_main = function() {
> });
>
> var validateCDROM = function(settings) {
> - if (/^(\/.*)+$/.test(settings['path']))
> + if (/^((https|http|ftp|ftps|tftp|\/).*)+$/.test(settings['path']))
> return true;
> else {
> kimchi.message.error.code('KCHVMSTOR0001E');
More information about the Kimchi-devel
mailing list