summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-11-06 13:03:41 +0100
committerSimo Sorce <simo@redhat.com>2015-11-06 20:25:25 -0500
commit83ceb41befe3be3e20cbe6e91f8767316b8532ba (patch)
treec1dde653f8f2b2396a77324c4082874494b5396c
parent9a43974618ece5ab100482e4c9068fc2917c408a (diff)
downloadcustodia-83ceb41befe3be3e20cbe6e91f8767316b8532ba.tar.gz
custodia-83ceb41befe3be3e20cbe6e91f8767316b8532ba.tar.xz
custodia-83ceb41befe3be3e20cbe6e91f8767316b8532ba.zip
Fix pylint violations
Signed-off-by: Christian Heimes <cheimes@redhat.com>
-rw-r--r--custodia/client.py1
-rw-r--r--custodia/httpd/server.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/custodia/client.py b/custodia/client.py
index d4b9c1a..4a17927 100644
--- a/custodia/client.py
+++ b/custodia/client.py
@@ -14,6 +14,7 @@ from requests.packages.urllib3.connectionpool import HTTPConnectionPool
class HTTPUnixConnection(HTTPConnection):
def __init__(self, host, timeout=60, **kwargs):
+ # pylint: disable=bad-super-call
super(HTTPConnection, self).__init__('localhost')
self.unix_socket = host
self.timeout = timeout
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index 2608f3c..46dfe92 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -161,7 +161,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
SELINUX_CONTEXT_LEN)
context = creds.decode('utf-8')
except Exception:
- log.debug("Couldn't retrieve SELinux Context", exc_info=True)
+ logger.debug("Couldn't retrieve SELinux Context", exc_info=True)
context = None
self._creds = {'pid': pid, 'uid': uid, 'gid': gid, 'context': context}