0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2026-06-05 02:56:42 +02:00

Fix regex pattern formatting in config_ini.sls

This commit is contained in:
POTIER Mathieu 2026-06-04 10:50:22 +02:00 committed by GitHub
parent 76987a6078
commit a206ad3fbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ sshd_config-with-ini:
{%- if salt['file.contains_regex'](openssh.sshd_config, regex_search_for_tabs) %}
file.replace:
- name: {{ openssh.sshd_config }}
- pattern: {{ regex_search_for_tabs }}
- pattern: {{ "%s" |format(regex_search_for_tabs) }}
- repl: '\1 \2'
- show_changes: True
- require_in: