summaryrefslogtreecommitdiffstats
path: root/ipapython/certdb.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-10-07 15:07:49 +0200
committerMartin Basti <mbasti@redhat.com>2016-10-11 16:50:32 +0200
commit4628522c532c6df0295308e5f749989c2536caa6 (patch)
tree70dab1dab7558d030f409b87e62a7bdf4680bbce /ipapython/certdb.py
parent49b29591aa979560068449b78fd547915420ff08 (diff)
downloadfreeipa-4628522c532c6df0295308e5f749989c2536caa6.tar.gz
freeipa-4628522c532c6df0295308e5f749989c2536caa6.tar.xz
freeipa-4628522c532c6df0295308e5f749989c2536caa6.zip
Pylint: fix the rest of unused local variables
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipapython/certdb.py')
-rw-r--r--ipapython/certdb.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/ipapython/certdb.py b/ipapython/certdb.py
index 850ba59bf..06666c022 100644
--- a/ipapython/certdb.py
+++ b/ipapython/certdb.py
@@ -30,8 +30,6 @@ from ipapython.ipa_log_manager import root_logger
from ipapython import ipautil
from ipalib import x509
-# pylint: disable=unused-variable
-
CA_NICKNAME_FMT = "%s IPA CA"
@@ -359,7 +357,7 @@ class NSSDatabase(object):
server_certs = self.find_server_certs()
if key_nickname:
- for nickname, trust_flags in server_certs:
+ for nickname, _trust_flags in server_certs:
if nickname == key_nickname:
break
else:
@@ -422,7 +420,7 @@ class NSSDatabase(object):
try:
self.run_certutil(["-M", "-n", root_nickname,
"-t", trust_flags])
- except ipautil.CalledProcessError as e:
+ except ipautil.CalledProcessError:
raise RuntimeError(
"Setting trust on %s failed" % root_nickname)
@@ -434,7 +432,7 @@ class NSSDatabase(object):
raise RuntimeError("Failed to get %s" % nickname)
cert = result.output
if not pem:
- (cert, start) = find_cert_from_txt(cert, start=0)
+ cert, _start = find_cert_from_txt(cert, start=0)
cert = x509.strip_header(cert)
cert = base64.b64decode(cert)
return cert