mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28699 from rallytime/bp-28670
Back-port #28670 to 2015.5
This commit is contained in:
commit
604a7b4199
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def _get_proc_username(proc):
|
|||
'''
|
||||
try:
|
||||
return proc.username() if PSUTIL2 else proc.username
|
||||
except (psutil.NoSuchProcess, psutil.AccessDenied):
|
||||
except (psutil.NoSuchProcess, psutil.AccessDenied, KeyError):
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue