diff options
-rw-r--r-- | sos/plugins/ftp.py | 2 | ||||
-rw-r--r-- | sos/plugins/ipa.py | 2 | ||||
-rw-r--r-- | sos/plugins/rhn.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sos/plugins/ftp.py b/sos/plugins/ftp.py index 41aeb385..6afc9260 100644 --- a/sos/plugins/ftp.py +++ b/sos/plugins/ftp.py @@ -13,7 +13,7 @@ ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import sos.plugintools -from os.path import returns +from os.path import exists class ftp(sos.plugintools.PluginBase): """FTP server related information diff --git a/sos/plugins/ipa.py b/sos/plugins/ipa.py index 2e13db20..cc35ad38 100644 --- a/sos/plugins/ipa.py +++ b/sos/plugins/ipa.py @@ -24,7 +24,7 @@ class ipa(sos.plugintools.PluginBase): # need to get kerberos and ipa specific addons. def checkenabled(self): - return self.isInstalled("ipa-server") or exists("/etc/ipa"): + return self.isInstalled("ipa-server") or exists("/etc/ipa") def setup(self): self.addCopySpec("/etc/dirsrv/ds.keytab") diff --git a/sos/plugins/rhn.py b/sos/plugins/rhn.py index 60e2479e..6be20a76 100644 --- a/sos/plugins/rhn.py +++ b/sos/plugins/rhn.py @@ -27,7 +27,7 @@ class rhn(sos.plugintools.PluginBase): def checkenabled(self): self.satellite = self.isInstalled("rhns-satellite-tools") \ - or self.isInstalled("spacewalk-proxy-management" \ # 5.3+ + or self.isInstalled("spacewalk-proxy-management") \ # 5.3+ or self.isInstalled("rhn-proxy-management") # pre-5.3 self.proxy = self.isInstalled("rhns-proxy-tools") \ or self.isInstalled("spacewalk-java") \ # 5.3+ |