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