aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Dutton <jeff.dutton@stratus.com>2013-10-31 10:30:21 -0400
committerJeff Dutton <jeff.dutton@stratus.com>2013-10-31 10:30:21 -0400
commit14feacc037f9de91cd5f3f631a3ca3b6ef54fa0e (patch)
tree30938b1e06989d656e46a314e34c61f98d3adb52
parent8b613636ac01572101ec9bb806d5c09cb65d894a (diff)
downloadsos-14feacc037f9de91cd5f3f631a3ca3b6ef54fa0e.tar.gz
Add check_enabled for neutron plugin
Signed-off-by: Jeff Dutton <jeff.r.dutton@gmail.com>
-rw-r--r--sos/plugins/neutron.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/neutron.py b/sos/plugins/neutron.py
index 03403227..23174330 100644
--- a/sos/plugins/neutron.py
+++ b/sos/plugins/neutron.py
@@ -139,6 +139,9 @@ class DebianNeutron(Neutron, DebianPlugin, UbuntuPlugin):
'python-%(comp)s',
'python-%(comp)sclient']
+ def check_enabled(self):
+ return self.is_installed("%s-common" % self.component_name)
+
def setup(self):
super(DebianNeutron, self).setup()
self.packages = self.gen_pkg_tuple(self.package_list_template)
@@ -166,6 +169,9 @@ class RedHatNeutron(Neutron, RedHatPlugin):
'python-%(comp)s',
'python-%(comp)sclient']
+ def check_enabled(self):
+ return self.is_installed("openstack-%s" % self.component_name)
+
def setup(self):
super(RedHatNeutron, self).setup()
self.packages = self.gen_pkg_tuple(self.package_list_template)