diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-03-27 11:39:30 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-03-27 11:39:30 +0000 |
commit | 3f742644ebbf27b7b024a2f7061c347196312308 (patch) | |
tree | f0e24d1e3c1da53257934fc72651b81fc7ba8b14 | |
parent | 6182367ec0672721d1381e40aaa97c3d2f504a95 (diff) | |
download | sos-3f742644ebbf27b7b024a2f7061c347196312308.tar.gz |
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>
-rw-r--r-- | sos/plugins/infiniband.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sos/plugins/infiniband.py b/sos/plugins/infiniband.py index 2c890a51..d3ec9827 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([ |