summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster
diff options
context:
space:
mode:
authorVijay Avuthu <vavuthu@redhat.com>2018-01-24 17:23:39 +0530
committerShwethaHPanduranga <shwetha-h-p@review.gluster.org>2018-01-28 10:54:31 +0000
commit0a4fa9b72321b8f7b097686f98dd6640bc449ae8 (patch)
tree170629e5c30732557bfcf9e7d29371fcc578e6ec /glustolibs-gluster/glustolibs/gluster
parent7d4bf9511ba4b5b685717fc05177d50e14b0a6b1 (diff)
Fixing Plumbum spawn issue with pgrep
Change-Id: If303d22f52d31e99676a6e97fbe0b9cb7d5a1234 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/heal_libs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/heal_libs.py b/glustolibs-gluster/glustolibs/gluster/heal_libs.py
index 3cd867c..6cbe937 100644
--- a/glustolibs-gluster/glustolibs/gluster/heal_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/heal_libs.py
@@ -329,7 +329,7 @@ def get_self_heal_daemon_pid(nodes):
_rc = True
if isinstance(nodes, str):
nodes = [nodes]
- cmd = "pgrep -f glustershd"
+ cmd = "pgrep -f glustershd | grep -v ^$$\$"
g.log.info("Executing cmd: %s on node %s" % (cmd, nodes))
results = g.run_parallel(nodes, cmd)
for node in results: