use cmd.run_all instead of cmd.run_stdout

Fixes #22574.
This commit is contained in:
Justin Findlay 2015-04-17 13:54:58 -06:00 committed by rallytime
parent 429adfe00a
commit f728f55160

View file

@ -950,9 +950,9 @@ def _linux_bin_exists(binary):
pass
try:
return len(__salt__['cmd.run_stdout'](
return len(__salt__['cmd.run_all'](
'whereis -b {0}'.format(binary)
).split()) > 1
)['stdout'].split()) > 1
except salt.exceptions.CommandExecutionError:
return False