diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-29 16:28:54 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-29 16:28:54 +0000 |
commit | b6e39a35b883e23992086c8086dbcdc8746484dd (patch) | |
tree | b7b2d094e326f912d8dd559a08712e73b9dd0638 /src/lib/Client | |
parent | f8a6863ba54f9e97a47fba1526fbc6508059ba18 (diff) | |
download | bcfg2-b6e39a35b883e23992086c8086dbcdc8746484dd.tar.gz bcfg2-b6e39a35b883e23992086c8086dbcdc8746484dd.tar.bz2 bcfg2-b6e39a35b883e23992086c8086dbcdc8746484dd.zip |
* Fix rh service verification for cases where the service is not yet installed (Fixed ticket #38)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1814 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Redhat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py index 6025a8236..15e87ffa4 100644 --- a/src/lib/Client/Redhat.py +++ b/src/lib/Client/Redhat.py @@ -38,7 +38,7 @@ class ToolsetImpl(Toolset): def VerifyService(self, entry): '''Verify Service status for entry''' try: - srvdata = self.saferun("/sbin/chkconfig --list %s"%entry.attrib['name'])[1][0].split() + srvdata = self.saferun('/sbin/chkconfig --list %s | grep -v "unknown service"'%entry.attrib['name'])[1][0].split() except IndexError: # Ocurrs when no lines are returned (service not installed) return False |