From: sunilkumarn417 Date: Sun, 5 Apr 2020 10:56:11 +0000 (-0400) Subject: code changes to retrieve correct daemon pid X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1440%2Fhead;p=teuthology.git code changes to retrieve correct daemon pid Signed-off-by: sunilkumarn417 --- diff --git a/teuthology/orchestra/daemon/systemd.py b/teuthology/orchestra/daemon/systemd.py index afb37be92..7651808a2 100644 --- a/teuthology/orchestra/daemon/systemd.py +++ b/teuthology/orchestra/daemon/systemd.py @@ -100,7 +100,7 @@ class SystemDState(DaemonState): @property def pid(self): proc_name = 'ceph-%s' % self.type_ - proc_regex = '"%s.*--id %s"' % (proc_name, self.id_) + proc_regex = '"%s.*--id %s "' % (proc_name, self.id_) args = ['ps', '-ef', run.Raw('|'), 'grep',