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:
Mina Naguib 2016-12-14 20:54:02 -05:00
parent 2a1066eee1
commit eb3b213266

View File

@ -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