TLS: test cli options consistently in the same line

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-03-18 14:05:48 +09:00 committed by FUJITA Tomonori
parent fc584ae3d8
commit e3fb48a0e0

View File

@ -65,7 +65,7 @@ class OpenFlowController(object):
self.server_loop()
def server_loop(self):
if CONF.ctl_privkey and CONF.ctl_cert is not None:
if CONF.ctl_privkey is not None and CONF.ctl_cert is not None:
if CONF.ca_certs is not None:
server = StreamServer((CONF.ofp_listen_host,
CONF.ofp_ssl_listen_port),