Merge "BigSwitch: Move attr ref after error check"
This commit is contained in:
commit
e02e9e5b9d
@ -162,11 +162,11 @@ class ServerProxy(object):
|
|||||||
if self.ssl:
|
if self.ssl:
|
||||||
self.currentconn = HTTPSConnectionWithValidation(
|
self.currentconn = HTTPSConnectionWithValidation(
|
||||||
self.server, self.port, timeout=timeout)
|
self.server, self.port, timeout=timeout)
|
||||||
self.currentconn.combined_cert = self.combined_cert
|
|
||||||
if self.currentconn is None:
|
if self.currentconn is None:
|
||||||
LOG.error(_('ServerProxy: Could not establish HTTPS '
|
LOG.error(_('ServerProxy: Could not establish HTTPS '
|
||||||
'connection'))
|
'connection'))
|
||||||
return 0, None, None, None
|
return 0, None, None, None
|
||||||
|
self.currentconn.combined_cert = self.combined_cert
|
||||||
else:
|
else:
|
||||||
self.currentconn = httplib.HTTPConnection(
|
self.currentconn = httplib.HTTPConnection(
|
||||||
self.server, self.port, timeout=timeout)
|
self.server, self.port, timeout=timeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user