summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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 0f29aca34..d79cf9243 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -20,7 +20,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
raw = self.cmd.run(cmd)[1][0]
patterns = ["error reading information", "unknown service"]
srvdata = [line.split() for line in raw for pattern in patterns \
- if pattern not in line]
+ if pattern not in line][0]
except IndexError:
# Ocurrs when no lines are returned (service not installed)
entry.set('current_status', 'off')