aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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/")