Update source template files used to generate final template

This commit is contained in:
Jakub Jelen 2021-05-20 16:34:26 +02:00 committed by Jakub Jelen
parent 32f9d0dda5
commit fd22532d93
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
{% endfor %}
{% endif %}
{% endmacro %}
{% macro match_iterate_block(match_list) %}
{% if match_list | type_debug == "list" %}
{% for match in match_list %}
{{ match_block(match) -}}
{% endfor %}
{% else %}
{{ match_block(match_list) -}}
{% endif %}
{% endmacro %}

View file

@ -1,8 +1,8 @@
{% if sshd['Match'] is defined %}
{{ match_block(sshd['Match']) -}}
{{ match_iterate_block(sshd['Match']) -}}
{% endif %}
{% if sshd_match is defined %}
{{ match_block(sshd_match) -}}
{{ match_iterate_block(sshd_match) -}}
{% endif %}
{% if sshd_match_1 is defined %}
{{ match_block(sshd_match_1) -}}