summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-11 15:55:23 +0000
committerChris Lumens <clumens@redhat.com>2006-08-11 15:55:23 +0000
commit65134b5601ec9e32051c234269fb5668be922c2a (patch)
tree4ea2048d479df00b2d93dab7ad37d5a8f0557c93 /vnc.py
parent8ca874078b4a7d1b7da006e69a1076fd9973fe9b (diff)
downloadanaconda-65134b5601ec9e32051c234269fb5668be922c2a.tar.gz
anaconda-65134b5601ec9e32051c234269fb5668be922c2a.tar.xz
anaconda-65134b5601ec9e32051c234269fb5668be922c2a.zip
Look for the right string to indicate failure.
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnc.py b/vnc.py
index d4d55146a..1fdd8c680 100644
--- a/vnc.py
+++ b/vnc.py
@@ -14,6 +14,7 @@
#
import os, sys, string
+import time
from snack import *
from constants_text import *
from rhpl.translate import _, N_
@@ -290,7 +291,7 @@ def startVNCServer(vncpassword="", root='/', vncconnecthost="",
if output == "":
stdoutLog.info(_("Connected!"))
break
- elif output.startswith("connecting") and output.endswith("failed"):
+ elif output.startswith("connecting") and output.endswith("failed\n"):
ntries += 1
if ntries > 50:
stdoutLog.error(_("Giving up attempting to connect after 50 tries!\n"))