diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-11 02:44:19 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-11 02:44:19 +0000 |
commit | 9cfe06c77ff7d388bba5ce3244099eaffdddb54c (patch) | |
tree | ffc234a263b3d5b297573ae07964872ed3b67bd0 | |
parent | 85946753d3862eace9b439c1630425387470fca9 (diff) | |
download | bcfg2-9cfe06c77ff7d388bba5ce3244099eaffdddb54c.tar.gz bcfg2-9cfe06c77ff7d388bba5ce3244099eaffdddb54c.tar.bz2 bcfg2-9cfe06c77ff7d388bba5ce3244099eaffdddb54c.zip |
Fix the chkconfig issue for real this time (really resolve Ticket #513) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4236 ce84e21b-d406-0410-9b95-82705330c041
-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 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] |