summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Redhat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py
index 15e87ffa4..c1c2f69c5 100644
--- a/src/lib/Client/Redhat.py
+++ b/src/lib/Client/Redhat.py
@@ -45,7 +45,10 @@ class ToolsetImpl(Toolset):
if entry.attrib['type'] == 'xinetd':
return entry.attrib['status'] == srvdata[1]
- onlevels = [level.split(':')[0] for level in srvdata[1:] if level.split(':')[1] == 'on']
+ try:
+ onlevels = [level.split(':')[0] for level in srvdata[1:] if level.split(':')[1] == 'on']
+ except IndexError:
+ onlevels = []
# chkconfig/init.d service
if entry.get('status') == 'on':