URL: https://github.com/freeipa/freeipa/pull/1088
Author: stlaz
 Title: #1088: [Backport][ipa-4-6] pylint: fix missing module on F27+
Action: opened

PR body:
"""
This PR was opened automatically because PR #1085 was pushed to master and 
backport to ipa-4-6 is required.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1088/head:pr1088
git checkout pr1088
From a315485589ab6f3532f1bfaae7b56c7a137d884a Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Mon, 18 Sep 2017 09:59:13 +0200
Subject: [PATCH] pylint: fix missing module

requests.packages contains but a weird backward compatibility fix
for its presumed urllib3 submodule but pylint does not approve.
---
 ipaserver/secrets/client.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ipaserver/secrets/client.py b/ipaserver/secrets/client.py
index 7ab930601f..3bcc25c174 100644
--- a/ipaserver/secrets/client.py
+++ b/ipaserver/secrets/client.py
@@ -13,6 +13,7 @@
 import ldapurl
 import gssapi
 import os
+import urllib3
 import requests
 
 
@@ -65,8 +66,9 @@ def __init__(
 
         self.keystore = self._keystore(realm, ldap_uri, auth_type)
 
-        # FIXME: Remove warnings about missig subjAltName
-        requests.packages.urllib3.disable_warnings()
+        # FIXME: Remove warnings about missing subjAltName for the
+        #        requests module
+        urllib3.disable_warnings()
 
     def init_creds(self):
         name = gssapi.Name(self.client_service,
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to