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.
This commit is contained in:
parent
0eda16c548
commit
6400516c5e
@ -74,6 +74,7 @@
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- if sshd_config.get('ConfigBanner', False) -%}
|
||||
{%- do processed_options.append('ConfigBanner') -%}
|
||||
{{ sshd_config['ConfigBanner'] }}
|
||||
{%- else -%}
|
||||
# This file is managed by salt. Manual changes risk being overwritten.
|
||||
|
Loading…
Reference in New Issue
Block a user