Merge pull request #30652 from mew1033/fix-sh-beacon

Fix sh beacon
This commit is contained in:
Nicole Thomas 2016-01-27 10:00:29 -07:00
commit 9d8ddeb525

View file

@ -67,7 +67,7 @@ def beacon(config):
ps_out = __salt__['status.procs']()
track_pids = []
for pid in ps_out:
if ps_out[pid].get('cmd', '') in shells:
if any(ps_out[pid].get('cmd', '').lstrip('-') in shell for shell in shells):
track_pids.append(pid)
if pkey not in __context__:
__context__[pkey] = {}