[Et-mgmt-commits-list] [SCM] virt-factory branch, master now at a4ff4c5ed5025acc7997c26c8fe7ec1198ea297c

Adrian Likins alikins at redhat.com
Thu Apr 26 17:55:41 UTC 2007


Hello,

This is an automated email from the git hooks/update script, it was
generated because a ref change was pushed to the repository.

Updating branch, master,
       via  a4ff4c5ed5025acc7997c26c8fe7ec1198ea297c (commit)
      from  bb7d537139ab99488149bd32477fdeae31dec38f (commit)

- Log -----------------------------------------------------------------
commit a4ff4c5ed5025acc7997c26c8fe7ec1198ea297c
Author: Adrian Likins <alikins at grimlock.devel.redhat.com>
Date:   Thu Apr 26 13:43:12 2007 -0400

    workaround for bz #237902
    
    python2.5 Transport classes are expected to set a self._use_datetime
    property, but the current m2crypto ones do not, so subclass and extend it
-----------------------------------------------------------------------

Diffstat:
 service/modules/nodecomm.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/service/modules/nodecomm.py b/service/modules/nodecomm.py
index 13b5abf..f76a806 100755
--- a/service/modules/nodecomm.py
+++ b/service/modules/nodecomm.py
@@ -32,6 +32,13 @@ from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
 # especially when mixed in with the puppet cert stuff that may only create
 # one pem file for a specific hostname.
 
+
+# workaround for bz #237902
+class VirtFactorySSL_Transport(SSL_Transport):
+    def __init__(self, ssl_context=None, use_datetime=0):
+        self._use_datetime = use_datetime
+        SSL_Transport.__init__(self,ssl_context=ssl_context)
+
 def get_handle(fromhost, target):
     """
     Return a xmlrpc server object for a given hostname.
@@ -61,7 +68,7 @@ def get_handle(fromhost, target):
  
     my_uri = "https://%s:2112" % target
     print "contacting: %s" % my_uri
-    my_rserver = Server(my_uri, SSL_Transport(ssl_context = my_ctx))
+    my_rserver = Server(my_uri, VirtFactorySSL_Transport(ssl_context = my_ctx))
     print my_rserver
     return my_rserver 
 

hooks/update
---
Git Source Code Management System
hooks/update refs/heads/master \
  bb7d537139ab99488149bd32477fdeae31dec38f \
  a4ff4c5ed5025acc7997c26c8fe7ec1198ea297c




More information about the Et-mgmt-commits-list mailing list