I added a no_init option to NSSConnection but failed to add it to the older NSSHTTPS interface. This patch makes it work with older python versions.

Pushed under 1-liner rule.

rob
>From 2481ae1175e071309352254b6565a8a6c61dec83 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcrit...@redhat.com>
Date: Mon, 5 Mar 2012 13:06:20 -0500
Subject: [PATCH] Fix NSS no_init in the NSSHTTPS class

---
 ipapython/nsslib.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipapython/nsslib.py b/ipapython/nsslib.py
index cc6ab1d..aae2446 100644
--- a/ipapython/nsslib.py
+++ b/ipapython/nsslib.py
@@ -298,13 +298,13 @@ class NSSHTTPS(httplib.HTTP):
 
     _connection_class = NSSConnection
 
-    def __init__(self, host='', port=None, strict=None, dbdir=None):
+    def __init__(self, host='', port=None, strict=None, dbdir=None, no_init=False):
         # provide a default host, pass the X509 cert info
 
         # urf. compensate for bad input.
         if port == 0:
             port = None
-        self._setup(self._connection_class(host, port, strict, dbdir=dbdir))
+        self._setup(self._connection_class(host, port, strict, dbdir=dbdir, no_init=no_init))
 
     def getreply(self):
         """
-- 
1.7.6.5

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to