Use file isntead of ls since ls is sometimes a script

This commit is contained in:
Daniel A. Wozniak 2024-12-31 15:24:19 -07:00 committed by Daniel Wozniak
parent f8b91f3978
commit 99b1b92306

View file

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