summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client
diff options
context:
space:
mode:
authorMichael Fenn <fennm@deshawresearch.com>2013-07-02 15:04:12 -0400
committerMichael Fenn <fennm@deshawresearch.com>2013-07-02 15:04:12 -0400
commit7ff54957090ddbc788f415dccb3e3c20ea1a301e (patch)
treeedf2c13e86a21aa051f869b1419494ba60323c04 /src/lib/Bcfg2/Client
parentc6f7025dbc5fd82bcfd6a249bdf05238539bd98a (diff)
downloadbcfg2-7ff54957090ddbc788f415dccb3e3c20ea1a301e.tar.gz
bcfg2-7ff54957090ddbc788f415dccb3e3c20ea1a301e.tar.bz2
bcfg2-7ff54957090ddbc788f415dccb3e3c20ea1a301e.zip
Chkconfig: give --list option to chkconfig rather than sending it on stdin
Diffstat (limited to 'src/lib/Bcfg2/Client')
-rw-r--r--src/lib/Bcfg2/Client/Tools/Chkconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/Chkconfig.py b/src/lib/Bcfg2/Client/Tools/Chkconfig.py
index ac874c94c..edcc86b85 100644
--- a/src/lib/Bcfg2/Client/Tools/Chkconfig.py
+++ b/src/lib/Bcfg2/Client/Tools/Chkconfig.py
@@ -116,8 +116,8 @@ 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").stdout.splitlines()
+ for line in
+ self.cmd.run("/sbin/chkconfig --list").stdout.splitlines()
if ":on" in line]
self.logger.debug('Found active services:')
self.logger.debug(allsrv)