Fix the execution of gluster command
diff --git a/collectd/files/plugin/collectd_glusterfs.py b/collectd/files/plugin/collectd_glusterfs.py
index 5457ea3..81c6623 100644
--- a/collectd/files/plugin/collectd_glusterfs.py
+++ b/collectd/files/plugin/collectd_glusterfs.py
@@ -33,7 +33,8 @@
def itermetrics(self):
# Collect peers' status
- out, err = self.execute([GLUSTER_BINARY, 'peer', 'status'])
+ out, err = self.execute([GLUSTER_BINARY, 'peer', 'status'],
+ shell=False)
if not out:
raise base.CheckException("Failed to execute gluster")