[virt-tools-list] [virt-manager PATCH] virt-manager: validate URL if OS detection is not in progress

Giuseppe Scrivano gscrivan at redhat.com
Thu Apr 17 10:10:44 UTC 2014

There is no reason to wait for the OS to be detected before validating
the user input when there is no detection active.  Make sure we block
only if the OS detection is in progress.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1086529

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
 virtManager/create.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/virtManager/create.py b/virtManager/create.py
index 0757f94..673d0cd 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -1314,7 +1314,8 @@ class vmmCreate(vmmGObjectUI):
         if self.have_startup_error:
-        if curpage == PAGE_INSTALL and self.should_detect_media():
+        if (curpage == PAGE_INSTALL and self.should_detect_media()
+            and self.detectedDistro == DETECT_INPROGRESS):
             # Make sure we have detected the OS before validating the page

More information about the virt-tools-list mailing list