From c1150f0eff0df9353d063f023fd4dac0e8b1a4bf Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 6 Mar 2012 09:30:00 +0000 Subject: Fix satellite and proxy package detection in rhn plugin Resolves: bz749262 --- sos/plugins/rhn.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sos/plugins/rhn.py b/sos/plugins/rhn.py index efad65bd..cd8394b5 100644 --- a/sos/plugins/rhn.py +++ b/sos/plugins/rhn.py @@ -28,8 +28,13 @@ class rhn(sos.plugintools.PluginBase): def checkenabled(self): # enable if any related package is installed - self.satellite = self.isInstalled("rhns-satellite-tools") - self.proxy = self.isInstalled("rhns-proxy-tools") + self.satellite = self.isInstalled("rhns-satellite-tools") \ + or self.isInstalled("spacewalk-java") \ + or self.isInstalled("rhn-base") + + self.proxy = self.isInstalled("rhns-proxy-tools") \ + or self.isInstalled("spacewalk-proxy-management") \ + or self.isInstalled("rhn-proxy-management") if self.satellite or self.proxy: return True @@ -72,15 +77,15 @@ class rhn(sos.plugintools.PluginBase): self.addCopySpec("/etc/tomcat5") self.addCopySpec("/var/log/tomcat5") - self.addCopySpec("/etc/tomcat5") - self.addCopySpec("/var/log/tomcat5") + self.addCopySpec("/etc/tomcat5/") + self.addCopySpec("/var/log/tomcat5/") if self.proxy: # copying configuration information - self.addCopySpec("/etc/squid") + self.addCopySpec("/etc/squid/") # copying logs - self.addCopySpec("/var/log/squid") + self.addCopySpec("/var/log/squid/") return -- cgit