mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use file isntead of ls since ls is sometimes a script
This commit is contained in:
parent
f8b91f3978
commit
99b1b92306
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ def _filter_id(value):
|
|||
{% if grains['os'] == 'Windows' %}
|
||||
{% set result = 'c:\Windows\System32\cmd.exe' | is_bin_file() %}
|
||||
{% else %}
|
||||
{% set result = '/bin/ls' | is_bin_file() %}
|
||||
{% set result = '/bin/file' | is_bin_file() %}
|
||||
{% endif %}
|
||||
test:
|
||||
module.run:
|
||||
|
|
Loading…
Add table
Reference in a new issue