[PATCH 1/2] Don't try to use bundled urllib3 in the python-module-request



It doesn't contain urllib3 (ALT patch from Fedora).
---
 freeipa/ipapython/secrets/client.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/freeipa/ipapython/secrets/client.py b/freeipa/ipapython/secrets/client.py
index 646ef7e..83411d7 100644
--- a/freeipa/ipapython/secrets/client.py
+++ b/freeipa/ipapython/secrets/client.py
@@ -12,7 +12,7 @@ import ldapurl
 import gssapi
 import os
 import requests
-
+import urllib3
 
 class CustodiaClient(object):
 
@@ -58,7 +58,7 @@ class CustodiaClient(object):
         self.keystore = self._keystore(realm, ldap_uri, auth_type)
 
         # FIXME: Remove warnings about missig subjAltName
-        requests.packages.urllib3.disable_warnings()
+        urllib3.disable_warnings()
 
     def init_creds(self):
         name = gssapi.Name('host@%s' % (self.client,),
-- 
2.10.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]