瀏覽代碼

Add ConfigBanner to processed_options when handled.

This prevents a verbatim version being added to end of file that will
cause the parsing to fail.
master
Brian Holland 7 年之前
父節點
當前提交
6400516c5e
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      openssh/files/sshd_config

+ 3
- 2
openssh/files/sshd_config 查看文件

@@ -74,9 +74,10 @@
{%- endmacro -%}

{%- if sshd_config.get('ConfigBanner', False) -%}
{{ sshd_config['ConfigBanner'] }}
{%- do processed_options.append('ConfigBanner') -%}
{{ sshd_config['ConfigBanner'] }}
{%- else -%}
# This file is managed by salt. Manual changes risk being overwritten.
# This file is managed by salt. Manual changes risk being overwritten.
{%- endif %}
{%- set global_src_url = salt ['pillar.get']('__formulas:print_template_url', None) %}
{%- set local_src_url = salt ['pillar.get']('openssh-formula:print_template_url', None) %}

Loading…
取消
儲存