summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 d79cf9243..e711d35ae 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -17,7 +17,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
'''Verify Service status for entry'''
try:
cmd = "/sbin/chkconfig --list %s " % (entry.get('name'))
- raw = self.cmd.run(cmd)[1][0]
+ raw = self.cmd.run(cmd)[1]
patterns = ["error reading information", "unknown service"]
srvdata = [line.split() for line in raw for pattern in patterns \
if pattern not in line][0]