summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/Chkconfig.py
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-06-07 13:23:13 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-06-07 08:42:53 -0500
commit97063d26e56b7dccf73ec548e82ccd101d8cbd83 (patch)
treea91bc7e585d2277061ce72d1ee92eb3b0598a212 /src/lib/Client/Tools/Chkconfig.py
parent7e63c759095bd90c6aff7b7ebcafe2535e27b7cd (diff)
downloadbcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.tar.gz
bcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.tar.bz2
bcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.zip
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/Chkconfig.py')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index c95f4c2b3..5dbb7b345 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -1,7 +1,7 @@
# This is the bcfg2 support for chkconfig
# $Id$
-'''This is chkconfig support'''
+"""This is chkconfig support."""
__revision__ = '$Revision$'
import Bcfg2.Client.Tools
@@ -9,7 +9,7 @@ import Bcfg2.Client.XML
class Chkconfig(Bcfg2.Client.Tools.SvcTool):
- '''Chkconfig support for Bcfg2'''
+ """Chkconfig support for Bcfg2."""
name = 'Chkconfig'
__execs__ = ['/sbin/chkconfig']
__handles__ = [('Service', 'chkconfig')]
@@ -19,7 +19,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
return "/sbin/service %s %s" % (service.get('name'), action)
def VerifyService(self, entry, _):
- '''Verify Service status for entry'''
+ """Verify Service status for entry."""
try:
cmd = "/sbin/chkconfig --list %s " % (entry.get('name'))
raw = self.cmd.run(cmd)[1]
@@ -75,7 +75,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
return status
def InstallService(self, entry):
- '''Install Service entry'''
+ """Install Service entry."""
rcmd = "/sbin/chkconfig %s %s"
self.cmd.run("/sbin/chkconfig --add %s"%(entry.attrib['name']))
self.logger.info("Installing Service %s" % (entry.get('name')))
@@ -87,7 +87,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
return pass1 and rc == 0
def FindExtra(self):
- '''Locate extra chkconfig Services'''
+ """Locate extra chkconfig Services."""
allsrv = [line.split()[0] for line in \
self.cmd.run("/sbin/chkconfig --list|grep :on")[1]]
self.logger.debug('Found active services:')