aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Robertson <kroberts@redhat.com>2011-11-09 15:05:00 -0500
committerKeith Robertson <kroberts@redhat.com>2011-11-14 09:30:04 -0500
commitf5dbb92e6f6ec5b665d03ca76c7f413901597b78 (patch)
treef58323d04a9f24d6e6fbcb9c3e9d7cb365c192bd
parent9b08a42bf6a7b411c5b2cbadfbaeec1b9e49f315 (diff)
downloadsos-f5dbb92e6f6ec5b665d03ca76c7f413901597b78.tar.gz
New plugin for gluster.
- Added checkEnabled
-rw-r--r--sos/plugins/gluster.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py
index 8fd20a5f..27c69b5a 100644
--- a/sos/plugins/gluster.py
+++ b/sos/plugins/gluster.py
@@ -12,10 +12,15 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+import os.path
import sos.plugintools
class gluster(sos.plugintools.PluginBase):
'''gluster related information'''
+ def checkenabled(self):
+ return os.path.exists("/etc/glusterd")
+
def setup(self):
- self.addCopySpecs(["/etc/glusterd/", "/var/log/glusterfs/"])
+ self.addCopySpec("/etc/glusterd/")
+ self.addCopySpec("/var/log/glusterfs/")