From 0a4fa9b72321b8f7b097686f98dd6640bc449ae8 Mon Sep 17 00:00:00 2001 From: Vijay Avuthu Date: Wed, 24 Jan 2018 17:23:39 +0530 Subject: Fixing Plumbum spawn issue with pgrep Change-Id: If303d22f52d31e99676a6e97fbe0b9cb7d5a1234 Signed-off-by: Vijay Avuthu --- glustolibs-gluster/glustolibs/gluster/heal_libs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-gluster/glustolibs/gluster/heal_libs.py') diff --git a/glustolibs-gluster/glustolibs/gluster/heal_libs.py b/glustolibs-gluster/glustolibs/gluster/heal_libs.py index 3cd867c36..6cbe9375d 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: -- cgit