mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix is_bin_file filter test on debian
This commit is contained in:
parent
d9bfbee860
commit
c4fe0391c4
1 changed files with 2 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue