diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-09 21:10:38 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-09 21:10:38 +0000 |
commit | 3dca8f84e8f9bd024f64ce8ed3caf61dfeccb915 (patch) | |
tree | cb0371e0f6c5f109015cee1b6d908c932a62eb25 /src/lib/Client | |
parent | 02e56a9f80f105aad6bb1b283cd0023c65d14ac9 (diff) | |
download | bcfg2-3dca8f84e8f9bd024f64ce8ed3caf61dfeccb915.tar.gz bcfg2-3dca8f84e8f9bd024f64ce8ed3caf61dfeccb915.tar.bz2 bcfg2-3dca8f84e8f9bd024f64ce8ed3caf61dfeccb915.zip |
Fix problem reported by labrown on irc [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4222 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-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 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') |