From 97063d26e56b7dccf73ec548e82ccd101d8cbd83 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jun 2010 13:23:13 +0000 Subject: Updated files to match PEP 257 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/Chkconfig.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/Client/Tools/Chkconfig.py') 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:') -- cgit v1.2.3-1-g7c22