diff options
author | Michael Fenn <fennm@deshawresearch.com> | 2013-07-02 15:04:12 -0400 |
---|---|---|
committer | Michael Fenn <fennm@deshawresearch.com> | 2013-07-02 15:04:12 -0400 |
commit | 7ff54957090ddbc788f415dccb3e3c20ea1a301e (patch) | |
tree | edf2c13e86a21aa051f869b1419494ba60323c04 /src/lib/Bcfg2 | |
parent | c6f7025dbc5fd82bcfd6a249bdf05238539bd98a (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/Chkconfig.py | 4 |
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) |