aboutsummaryrefslogtreecommitdiffstats
path: root/example_plugins/example.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-02-12 13:24:08 +0000
committerBryn M. Reeves <bmr@redhat.com>2016-02-12 13:24:08 +0000
commit184de3818abbf602d198a5030bdada7989c44b46 (patch)
treeb290d35d1dd40b6417b4ca6f5f6bb2eb62968550 /example_plugins/example.py
parentaa7fd5739f528cd9534fb4d86daff0e7c0e9bd06 (diff)
downloadsos-184de3818abbf602d198a5030bdada7989c44b46.tar.gz
[sosreport] fix '0 plugins' output in profile listings
When sosreport prints a profile listing as a result of the user selecting a non-existent profile we currently output a profile list (no plugin names) that ends with the standard summary of profiles and plugins: # sosreport -vv --batch --profile qux set sysroot to '/' (default) sosreport (version 3.2) Unknown or inactive profile(s) provided: qux The following profiles are available: boot cluster [...] system virt webserver 28 profiles, 0 plugins This is less than useful and confusing for users (who shouldn't have to care about how we manage this stuff internally). Change this to only include the ", N plugins" part of the text if we have actually loaded some valid plugins for the active profile and factor out common display code in list_plugins and list_profiles. Fixes: #733. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'example_plugins/example.py')
0 files changed, 0 insertions, 0 deletions