diff options
-rw-r--r-- | sos/plugins/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 995989b9..aa69b19d 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -957,7 +957,12 @@ class Plugin(object): def setup_verify(self): if not hasattr(self, "verify_packages") or not self.verify_packages: - return + if hasattr(self, "packages") and self.packages: + # Limit automatic verification to only the named packages + self.verify_packages = [p + "$" for p in self.packages] + else: + return + pm = self.policy().package_manager verify_cmd = pm.build_verify_command(self.verify_packages) if verify_cmd: |