[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH] - 'virt-install --prompt' produce error on empty input



On responding to prompt:
$ What is the install CD-ROM/ISO or URL?
With no input (just press <Enter>) continue to install but produce error
in log.

---
diff -r 2eacc2fed4dd virt-install
--- a/virt-install  Wed Sep 08 17:45:38 2010 -0400
+++ b/virt-install  Thu Sep 09 22:12:07 2010 +0300
@@ -619,6 +619,9 @@
         cdpath = None
         media = cli.prompt_for_input("", prompt_txt, None)
 
+        if not len(media):
+            continue
+
         if not ishvm or media.count(":/"):
             location = media
         else:
---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]