mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Caught bug in display... referencing 0 instead of OK variable
This commit is contained in:
parent
e79b379e67
commit
95fbf69206
2 changed files with 7 additions and 8 deletions
|
|
@ -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)
|
||||
|
||||
|
|
@ -520,12 +519,12 @@ class Client(object):
|
|||
|
||||
def redirect_to_ssl(self, vhost):
|
||||
for ssl_vh in vhost:
|
||||
success, redirect_vhost = self.config.enable_redirect(ssl_vh)
|
||||
logger.info("\nRedirect vhost: " + redirect_vhost.file +
|
||||
success, redirect_vhost = self.config.enable_redirect(ssl_vh)
|
||||
logger.info("\nRedirect vhost: " + redirect_vhost.file +
|
||||
" - " + str(success))
|
||||
# If successful, make sure redirect site is enabled
|
||||
if success:
|
||||
self.config.enable_site(redirect_vhost)
|
||||
# If successful, make sure redirect site is enabled
|
||||
if success:
|
||||
self.config.enable_site(redirect_vhost)
|
||||
|
||||
|
||||
def get_virtual_hosts(self, domains):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue