diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-04-22 15:21:53 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-04-22 15:21:53 +0000 |
commit | 8dcd85bb0286ba81740b942d30e7517e5d968068 (patch) | |
tree | 6469c70a0ce91cfd53941914dc12b60266a10afa | |
parent | 643f3e8065b544b3e2d7b5160d8591b74404cf47 (diff) | |
download | sos-8dcd85bb0286ba81740b942d30e7517e5d968068.tar.gz |
update openais plugin to work with latest version
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@934 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | sos/plugins/openais.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sos/plugins/openais.py b/sos/plugins/openais.py index c2425173..1d0f08bc 100644 --- a/sos/plugins/openais.py +++ b/sos/plugins/openais.py @@ -19,21 +19,13 @@ class openais(sos.plugintools.PluginBase): """openais related information """ def checkenabled(self): - if self.isInstalled("openais") or os.path.exists("/usr/sbin/openais-confdb-display"): + if self.isInstalled("openais"): ret, openais_ver, rtime = self.callExtProg("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')] - def setup(self): - self.collectExtOutput("openais-confdb-display") - for item in self.openais_config_opts: - obj, opt = item - self.collectExtOutput("openais-confdb-display %s %s" % (obj, opt)) + self.addCopySpec("/etc/corosync") return |