summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/Chkconfig.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-26 09:48:58 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-26 10:05:22 -0400
commitaeddf10f2e129c70b182e91b727ccc8028e3fd45 (patch)
tree2213bf1a27912b75a7b160a0b2494acee052be19 /src/lib/Bcfg2/Client/Tools/Chkconfig.py
parentbe0e43af56fbd56dbb3f8d0266503e7b820f2c11 (diff)
downloadbcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.tar.gz
bcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.tar.bz2
bcfg2-aeddf10f2e129c70b182e91b727ccc8028e3fd45.zip
made full pylint checks the default, expanded pylint coverage to lots of tools
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/Chkconfig.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/Chkconfig.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/Chkconfig.py b/src/lib/Bcfg2/Client/Tools/Chkconfig.py
index b62fb9ef8..ef697091c 100644
--- a/src/lib/Bcfg2/Client/Tools/Chkconfig.py
+++ b/src/lib/Bcfg2/Client/Tools/Chkconfig.py
@@ -51,10 +51,8 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
pstatus = self.check_service(entry)
if entry.get('status') == 'on':
status = (len(onlevels) > 0 and pstatus)
- command = 'start'
else:
status = (len(onlevels) == 0 and not pstatus)
- command = 'stop'
if not status:
if entry.get('status') == 'on':
@@ -84,8 +82,9 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
def FindExtra(self):
"""Locate extra chkconfig Services."""
- allsrv = [line.split()[0] for line in \
- self.cmd.run("/sbin/chkconfig --list 2>/dev/null|grep :on")[1]]
+ allsrv = [line.split()[0]
+ for line in self.cmd.run("/sbin/chkconfig "
+ "--list 2>/dev/null|grep :on")[1]]
self.logger.debug('Found active services:')
self.logger.debug(allsrv)
specified = [srv.get('name') for srv in self.getSupportedEntries()]