sos/0046-Convert-infiniband-to-package-list.patch
Bryn M. Reeves 5261563507 Update sos to 3.1
Update sos to the 3.1 upstream release and add post-release patches
from the development tree.
2014-04-01 12:25:00 +01:00

34 lines
995 B
Diff

From 3f742644ebbf27b7b024a2f7061c347196312308 Mon Sep 17 00:00:00 2001
From: "Bryn M. Reeves" <bmr@redhat.com>
Date: Thu, 27 Mar 2014 11:39:30 +0000
Subject: [PATCH 46/61] Convert infiniband to package list
Remove infiniband's open-coded check_enabled() and use a package
list to control plugin activation.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
---
sos/plugins/infiniband.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/sos/plugins/infiniband.py b/sos/plugins/infiniband.py
index 2c890a5..d3ec982 100644
--- a/sos/plugins/infiniband.py
+++ b/sos/plugins/infiniband.py
@@ -21,11 +21,7 @@ class Infiniband(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"""
plugin_name = 'infiniband'
-
- def check_enabled(self):
- if self.commons["policy"].pkg_by_name("libibverbs-utils"):
- return True
- return False
+ packages = ('libibverbs-utils',)
def setup(self):
self.add_copy_specs([
--
1.7.11.7