Fix is_bin_file filter test on debian

This commit is contained in:
Daniel A. Wozniak 2025-01-01 15:40:09 -07:00 committed by Daniel Wozniak
parent d9bfbee860
commit c4fe0391c4

View file

@ -385,6 +385,8 @@ def _filter_id(value):
sls=r"""
{% if grains['os'] == 'Windows' %}
{% set result = 'c:\Windows\System32\cmd.exe' | is_bin_file() %}
{% elif grains['os_family'] == 'Debian' %}
{% set result = '/usr/bin/file' | is_bin_file() %}
{% else %}
{% set result = '/bin/file' | is_bin_file() %}
{% endif %}