summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-11-03 21:46:37 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-11-03 21:46:37 +0000
commit001a62778d0cae8857ec8d79f73609083f9da720 (patch)
treee67ad5ec34f300c120476dc003a2c70a7972891e /src
parent329b47ee25e9db3828df63110aec5c3b76b7a52b (diff)
downloadbcfg2-001a62778d0cae8857ec8d79f73609083f9da720.tar.gz
bcfg2-001a62778d0cae8857ec8d79f73609083f9da720.tar.bz2
bcfg2-001a62778d0cae8857ec8d79f73609083f9da720.zip
add reinventory upon extra package deletion
2005/10/28 13:48:28-05:00 anl.gov!desai fix last chkconfig instance (Logical change 1.350) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1453 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Redhat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py
index 87d8d2b07..4992b04d1 100644
--- a/src/lib/Client/Redhat.py
+++ b/src/lib/Client/Redhat.py
@@ -106,6 +106,7 @@ class Redhat(Toolset):
self.CondPrint('verbose', "Removing packages: %s" % self.pkgwork['remove'])
if not system("rpm --quiet -e %s" % " ".join(self.pkgwork['remove'])):
self.pkgwork['remove'] = []
+ self.Inventory()
else:
self.CondPrint('verbose', "Need to remove packages: %s" % self.pkgwork['remove'])
if len(self.extra_services) > 0:
@@ -120,7 +121,7 @@ class Redhat(Toolset):
def Inventory(self):
'''Do standard inventory plus debian extra service check'''
Toolset.Inventory(self)
- allsrv = [line.split()[0] for line in popen("chkconfig --list|grep :on").readlines()]
+ allsrv = [line.split()[0] for line in popen("/sbin/chkconfig --list|grep :on").readlines()]
self.CondPrint('debug', "Found active services: %s" % allsrv)
csrv = self.cfg.findall(".//Service")
[allsrv.remove(svc.get('name')) for svc in csrv if