mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Always use ps -efHww
The "ww" isn't only needed in Debian, but likely all linux distros Accorging to "ps" docs, there are several invocation cases where the output width is undefined, unless env COLUMNS or 'ww' is specified
This commit is contained in:
parent
2a1066eee1
commit
eb3b213266
@ -877,10 +877,8 @@ def _ps(osdata):
|
||||
'/proc/[0-9]*/status | sed -e \"s=/proc/\\([0-9]*\\)/.*=\\1=\") '
|
||||
'| awk \'{ $7=\"\"; print }\''
|
||||
)
|
||||
elif osdata['os_family'] == 'Debian':
|
||||
grains['ps'] = 'ps -efHww'
|
||||
else:
|
||||
grains['ps'] = 'ps -efH'
|
||||
grains['ps'] = 'ps -efHww'
|
||||
return grains
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user