aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-09-16 12:52:44 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-09-16 12:52:44 +0100
commit342cb7be3836d885616b53aa56dee48bbe7439fa (patch)
treeaa563da8360fe4ca60be836cb188bbfa80580d37
parentdf2cdb056d7a6d19d03457a6e4762f97586dcf75 (diff)
downloadsos-342cb7be3836d885616b53aa56dee48bbe7439fa.tar.gz
[sosreport] fix test in SoSReport._is_in_profile()
All plugins belong to the null (empty) plugin. Fix the test in _is_in_profile() to check against the list of active profiles and not the list of all detected profiles. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 29b6f640..49d5910b 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -781,7 +781,7 @@ class SoSReport(object):
def _is_in_profile(self, plugin_class):
onlyplugins = self.opts.onlyplugins
- if not len(self.profiles):
+ if not len(self.opts.profiles):
return True
if not hasattr(plugin_class, "profiles"):
return False