diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2010-10-17 20:43:16 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-10-17 20:43:16 -0500 |
commit | b056804f3d3e3a2d92dac42062527873255d14c7 (patch) | |
tree | 0685c311e66f75064b5f651219a488e6ee4634d8 /src/lib/Client/Tools/Chkconfig.py | |
parent | ff01b4e6ad3dcf7fdae92adc16c1a3481a37d8db (diff) | |
download | bcfg2-b056804f3d3e3a2d92dac42062527873255d14c7.tar.gz bcfg2-b056804f3d3e3a2d92dac42062527873255d14c7.tar.bz2 bcfg2-b056804f3d3e3a2d92dac42062527873255d14c7.zip |
Client Tools: Pylint/PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Client/Tools/Chkconfig.py')
-rw-r--r-- | src/lib/Client/Tools/Chkconfig.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py index 5dbb7b345..b7227ec3d 100644 --- a/src/lib/Client/Tools/Chkconfig.py +++ b/src/lib/Client/Tools/Chkconfig.py @@ -81,7 +81,9 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool): self.logger.info("Installing Service %s" % (entry.get('name'))) pass1 = True if entry.get('status') == 'off': - rc = self.cmd.run(rcmd % (entry.get('name'), entry.get('status')) + " --level 0123456")[0] + rc = self.cmd.run(rcmd % (entry.get('name'), + entry.get('status')) + \ + " --level 0123456")[0] pass1 = rc == 0 rc = self.cmd.run(rcmd % (entry.get('name'), entry.get('status')))[0] return pass1 and rc == 0 @@ -93,5 +95,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool): self.logger.debug('Found active services:') self.logger.debug(allsrv) specified = [srv.get('name') for srv in self.getSupportedEntries()] - return [Bcfg2.Client.XML.Element('Service', type='chkconfig', name=name) \ + return [Bcfg2.Client.XML.Element('Service', + type='chkconfig', + name=name) \ for name in allsrv if name not in specified] |