diff options
author | Josh Koenig <josh@getpantheon.com> | 2011-07-20 15:13:08 -0700 |
---|---|---|
committer | Josh Koenig <josh@getpantheon.com> | 2011-07-20 15:13:08 -0700 |
commit | 9ecf23244aa27efd2e3e6924a0009ef12bf9fc37 (patch) | |
tree | ee6fe8ef5ddf3266541d37f8796e360a8148624b /src | |
parent | 95295013959318df2aab616ce30eb98e2c217528 (diff) | |
download | bcfg2-9ecf23244aa27efd2e3e6924a0009ef12bf9fc37.tar.gz bcfg2-9ecf23244aa27efd2e3e6924a0009ef12bf9fc37.tar.bz2 bcfg2-9ecf23244aa27efd2e3e6924a0009ef12bf9fc37.zip |
as per http://trac.mcs.anl.gov/projects/bcfg2/ticket/1026
piping stderr to /dev/null to prevent failure
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/Chkconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py index 0c78b0fb5..7bf176f2c 100644 --- a/src/lib/Client/Tools/Chkconfig.py +++ b/src/lib/Client/Tools/Chkconfig.py @@ -96,7 +96,7 @@ 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|grep :on")[1]] + self.cmd.run("/sbin/chkconfig --list 2>/dev/null|grep :on")[1]] self.logger.debug('Found active services:') self.logger.debug(allsrv) specified = [srv.get('name') for srv in self.getSupportedEntries()] |