Caught bug in display... referencing 0 instead of OK variable

This commit is contained in:
James Kasten
2014-11-20 15:42:13 -08:00
parent e79b379e67
commit 95fbf69206
2 changed files with 7 additions and 8 deletions
-1
View File
@@ -286,7 +286,6 @@ class Client(object):
self.redirect = display.redirect_by_default()
if self.redirect:
print "HERE"
self.redirect_to_ssl(vhost)
self.config.restart(quiet=self.curses)
+2 -2
View File
@@ -309,11 +309,11 @@ def redirect_by_default():
"Please enter the appropriate number",
width = WIDTH)
if result[0] != 0:
if result[0] != OK:
return False
# different answer for each type of display
return (result[1] == "Secure" or result[1] == 1)
return (str(result[1]) == "Secure" or result[1] == 1)
def confirm_revocation(cert):