ia64/xen-unstable

changeset 14621:7e6ef2b914aa

Fix to let TCP server run without SSL installed.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Wed Mar 28 12:38:13 2007 +0100 (2007-03-28)
parents f9d23364567a
children 77b210daefee
files tools/python/xen/xend/server/XMLRPCServer.py
line diff
     1.1 --- a/tools/python/xen/xend/server/XMLRPCServer.py	Wed Mar 28 11:01:58 2007 +0100
     1.2 +++ b/tools/python/xen/xend/server/XMLRPCServer.py	Wed Mar 28 12:38:13 2007 +0100
     1.3 @@ -126,11 +126,10 @@ class XMLRPCServer:
     1.4                           'all interfaces, port ',
     1.5                           self.port, authmsg)
     1.6  
     1.7 -                if not ssl_enabled:
     1.8 -                    raise ValueError("pyOpenSSL not installed. "
     1.9 -                                     "Unable to start HTTPS XML-RPC server")
    1.10 -
    1.11                  if using_ssl:
    1.12 +                    if not ssl_enabled:
    1.13 +                        raise ValueError("pyOpenSSL not installed. "
    1.14 +                                         "Unable to start HTTPS XML-RPC server")
    1.15                      self.server = SSLXMLRPCServer(
    1.16                          (self.host, self.port),
    1.17                          self.hosts_allowed,