Change in vdsm[master]: clientIF: change createSSLContext to be a class method

ykaplan at redhat.com ykaplan at redhat.com
Thu Jan 8 14:59:10 UTC 2015


Yeela Kaplan has uploaded a new change for review.

Change subject: clientIF: change createSSLContext to be a class method
......................................................................

clientIF: change createSSLContext to be a class method

and also make it non private, so we can use it for
creating an ssl context on vm migration.

Change-Id: I8c7e324759892232d16a4913314f1dfa76ea85b8
Signed-off-by: Yeela Kaplan <ykaplan at redhat.com>
---
M vdsm/clientIF.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/99/36699/1

diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py
index 7e106cf..482bc31 100644
--- a/vdsm/clientIF.py
+++ b/vdsm/clientIF.py
@@ -159,11 +159,12 @@
         return cls._instance
 
     def _createAcceptor(self, host, port):
-        sslctx = self._createSSLContext()
+        sslctx = clientIF.createSSLContext()
 
         self._acceptor = MultiProtocolAcceptor(host, port, sslctx)
 
-    def _createSSLContext(self):
+    @classmethod
+    def createSSLContext(cls):
         sslctx = None
         if config.getboolean('vars', 'ssl'):
             truststore_path = config.get('vars', 'trust_store_path')


-- 
To view, visit http://gerrit.ovirt.org/36699
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c7e324759892232d16a4913314f1dfa76ea85b8
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan at redhat.com>


More information about the vdsm-patches mailing list