aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2021-10-21 16:07:33 +0200
committerJake Hunsaker <jhunsake@redhat.com>2021-10-26 14:35:08 -0400
commit9659b79f08a83a0b6a02dd205bd232726e24c701 (patch)
tree9394778a23fc9f718ee93ed0bc9949bb67f8f8ec
parent5c1af425ba925310568423295576d14a13bb7445 (diff)
downloadsos-9659b79f08a83a0b6a02dd205bd232726e24c701.tar.gz
[report] Fill scls_matched property completely
scls_matched property needs to be generated by whole loop execution. Therefore we can return some SCL was found even after the loop. Related: #2730 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/report/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py
index 4cbb8a35..08eee118 100644
--- a/sos/report/plugins/__init__.py
+++ b/sos/report/plugins/__init__.py
@@ -2708,8 +2708,8 @@ class Plugin():
# SCL containers don't exist
()):
type(self)._scls_matched.append(scl)
- if type(self)._scls_matched:
- return True
+ if type(self)._scls_matched:
+ return True
return self._check_plugin_triggers(self.files,
self.packages,