mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
commit
9d8ddeb525
1 changed files with 1 additions and 1 deletions
|
@ -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] = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue