aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stokes <adam.stokes@canonical.com>2012-02-22 11:26:01 +0000
committerAdam Stokes <adam.stokes@canonical.com>2012-02-22 11:26:01 +0000
commit8e5aa785017518aef82b7e6f5caa8cf70ee7c207 (patch)
treee4596efa805bdadf94e643ef549826f71f410be8
parent1264037635b9c23b4256507773f0e178dc758dfb (diff)
downloadsos-8e5aa785017518aef82b7e6f5caa8cf70ee7c207.tar.gz
sos/sosreport: Display invalid plugins when verbosity is set
Previously, when doing sosreport -l all valid and non valid plugins were being listed. In the case where there are multiple distributions involved this list can get quite long. In an effort to limit what the user sees based on distribution we only list all plugins if our verbosity option is set. Signed-off-by: Adam Stokes <adam.stokes@canonical.com>
-rw-r--r--sos/sosreport.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 08f11fd6..fb2622ab 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -429,7 +429,8 @@ class SoSReport(object):
for plugin_class in plugin_classes:
if not self.policy.validatePlugin(plugin_class):
self.soslog.debug(_("plugin %s does not validate, skipping") % plug)
- self._skip(plugin_class, _("does not validate"))
+ if self.opts.verbosity > 0:
+ self._skip(plugin_class, _("does not validate"))
continue
if plugin_class.requires_root and not self._is_root: