From: Royce Lv <lvroyce(a)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(a)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