diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-01-21 21:07:24 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-01-21 21:07:24 +0000 |
commit | cbe5fcc2e226c38567c74d772eb94c71ec956d54 (patch) | |
tree | ef12ba3aea21682e6195b9e0dfb9f3ce0fcb2100 | |
parent | 6a59f99df8515ea7ea0cf5b4f3abf2835e0d5047 (diff) | |
download | sos-cbe5fcc2e226c38567c74d772eb94c71ec956d54.tar.gz |
trunk openais fix
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@696 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | src/lib/sos/plugins/openais.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/sos/plugins/openais.py b/src/lib/sos/plugins/openais.py index 11aa12f3..140572a2 100644 --- a/src/lib/sos/plugins/openais.py +++ b/src/lib/sos/plugins/openais.py @@ -20,13 +20,16 @@ class openais(sos.plugintools.PluginBase): """ def checkenabled(self): if self.isInstalled("openais") or os.path.exists("/usr/sbin/openais-confdb-display"): - return True + openais_ver = commands.getoutput("rpm -q --queryformat='%{VERSION}' openais") + v, r, m = openais_ver.split('.') + if int(r) >= 80 and int(m) >= 6: + return True return False - openais_config_opts = [('totem,token'), ('totem,consensus'), - ('totem,token_retransmits_before_loss_const'), - ('cman,quorum_dev_poll'), ('cman,expected_votes'), - ('cman,two_node')] + openais_config_opts = [('totem','token'), ('totem','consensus'), + ('totem','token_retransmits_before_loss_const'), + ('cman','quorum_dev_poll'), ('cman','expected_votes'), + ('cman','two_node')] def setup(self): self.collectExtOutput("openais-confdb-display") |