[Kimchi-devel] [PATCH] Remote ISO attachment: fix UI to accept remote ISO link for cdrom attachment

lvroyce at linux.vnet.ibm.com lvroyce at linux.vnet.ibm.com
Tue Aug 12 09:53:17 UTC 2014


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');
-- 
1.8.3.2




More information about the Kimchi-devel mailing list