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

Shahar Havivi shaharh at redhat.com
Thu Sep 9 19:15:17 UTC 2010


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:
---




More information about the virt-tools-list mailing list