diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-12-11 18:25:25 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-12-11 18:25:25 +0000 |
commit | 9147f2d7522ab5c7adfb7878b68a8c664e1ff0a1 (patch) | |
tree | d8d79c6a39faeccf66faec4f39a5b3cfc15e6b55 | |
parent | 4ff6f2a3932ba3f28213e03508b7f230b99bd031 (diff) | |
download | sos-9147f2d7522ab5c7adfb7878b68a8c664e1ff0a1.tar.gz |
Remove analyze() method from yum module
The yum module's analyze method is pretty useless. It just checks
for extra /etc/yum.repos.d files on RHEL systems. Delete it.
-rw-r--r-- | sos/plugins/yum.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py index c2b034f7..9d57eba9 100644 --- a/sos/plugins/yum.py +++ b/sos/plugins/yum.py @@ -24,15 +24,6 @@ class yum(Plugin, RedHatPlugin): optionList = [("yumlist", "list repositories and packages", "slow", False), ("yumdebug", "gather yum debugging data", "slow", False)] - def analyze(self): - # repo sanity checking - # TODO: elaborate/validate actual repo files, however this directory should - # be empty on RHEL 5+ systems. - if self.policy().rhelVersion() == 5: - if len(os.listdir("/etc/yum.repos.d/")): - self.addAlert("/etc/yum.repos.d/ contains additional repository "+ - "information and can cause rpm conflicts.") - def setup(self): rhelver = self.policy().rhelVersion() |