summaryrefslogtreecommitdiffstats
path: root/install/tools/ipactl
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-10-04 16:54:44 +0200
committerMartin Basti <mbasti@redhat.com>2016-10-06 10:43:36 +0200
commitd9375881460d63cdd696bb0705da0ac205db9870 (patch)
tree3c7c4016f6b5ffd48f390d74003dffdf97b6a0ea /install/tools/ipactl
parentac94d32c4fd543e33211c0331330c80c619e0058 (diff)
downloadfreeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.gz
freeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.xz
freeipa-d9375881460d63cdd696bb0705da0ac205db9870.zip
Pylint: remove unused variables from installers and scripts
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'install/tools/ipactl')
-rwxr-xr-xinstall/tools/ipactl10
1 files changed, 3 insertions, 7 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl
index d22973838..42bd73e74 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -39,9 +39,6 @@ from ipapython.dn import DN
from ipaplatform import services
from ipaplatform.paths import paths
-# pylint: disable=unused-variable
-
-
MSG_HINT_IGNORE_SERVICE_FAILURE = (
"Hint: You can use --ignore-service-failure option for forced start in "
"case that a non-critical service failed"
@@ -89,7 +86,7 @@ def is_dirsrv_debugging_enabled():
fd.close()
for line in lines:
if line.lower().startswith('nsslapd-errorlog-level'):
- (option, value) = line.split(':')
+ _option, value = line.split(':')
if int(value) > 0:
debugging = True
@@ -239,7 +236,7 @@ def get_config_from_file():
def_svc_list.append([s[1], s[0]])
ordered_list = []
- for (order, svc) in sorted(def_svc_list):
+ for _order, svc in sorted(def_svc_list):
if svc in svc_list:
ordered_list.append(svc)
@@ -286,7 +283,6 @@ def ipa_start(options):
except Exception as e:
raise IpactlError("Failed to start Directory Service: " + str(e))
- ldap_list = []
try:
svc_list = get_config(dirsrv)
except Exception as e:
@@ -540,7 +536,7 @@ def main():
# LSB status code 4: user had insufficient privilege
raise IpactlError("You must be root to run ipactl.", 4)
- safe_options, options, args = parse_options()
+ _safe_options, options, args = parse_options()
if len(args) != 1:
# LSB status code 2: invalid or excess argument(s)