diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2011-08-12 09:00:00 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2011-08-12 09:00:00 +0100 |
commit | 8173b564edccac97622e9049a8dcc1066289de2b (patch) | |
tree | 6be48b03e15df03679d45e42ef778085b58e4397 | |
parent | f81f6e783db254d8fd0106ee1f5d6dfc798bcab1 (diff) | |
download | sos-8173b564edccac97622e9049a8dcc1066289de2b.tar.gz |
Collect yum repository list by default
-rw-r--r-- | sos/plugins/yum.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py index 7b9de5f1..25432d72 100644 --- a/sos/plugins/yum.py +++ b/sos/plugins/yum.py @@ -19,8 +19,8 @@ class yum(sos.plugintools.PluginBase): """yum information """ - optionList = [("yumlist", "list repositories and packages", "slow", False)] - optionList = [("yumdebug", "gather yum debugging data", "slow", False)] + optionList = [("yumlist", "list repositories and packages", "slow", False), + ("yumdebug", "gather yum debugging data", "slow", False)] def checkenabled(self): self.files = [ "/etc/yum.conf" ] @@ -43,9 +43,10 @@ class yum(sos.plugintools.PluginBase): self.addCopySpec("/etc/yum.conf") self.addCopySpec("/var/log/yum.log") + # Get a list of channels the machine is subscribed to. + self.collectExtOutput("yum -C repolist") + if self.getOption("yumlist"): - # Get a list of channels the machine is subscribed to. - self.collectExtOutput("/bin/echo \"repo list\" | /usr/bin/yum shell") # List various information about available packages self.collectExtOutput("/usr/bin/yum list") |