From 001a62778d0cae8857ec8d79f73609083f9da720 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 3 Nov 2005 21:46:37 +0000 Subject: 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 --- src/lib/Client/Redhat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-1-g7c22