summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosh Koenig <josh@getpantheon.com>2011-07-20 15:13:08 -0700
committerJosh Koenig <josh@getpantheon.com>2011-07-20 15:13:08 -0700
commit9ecf23244aa27efd2e3e6924a0009ef12bf9fc37 (patch)
treeee6fe8ef5ddf3266541d37f8796e360a8148624b /src
parent95295013959318df2aab616ce30eb98e2c217528 (diff)
downloadbcfg2-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.py2
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()]