Use @luto solution

Simple and just works!
This commit is contained in:
Matt Willsher 2016-01-24 15:49:54 +00:00
parent 2117ef23e1
commit c42662efa9
2 changed files with 2 additions and 8 deletions

View file

@ -16,18 +16,15 @@
{% endif %}
{% endmacro %}
{% macro body_option(key,override) %}
{% set value = undefined %}
{% if override is defined %}
{% set value = override %}
{% elif sshd[key] is defined %}
{% set value = sshd[key] %}
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
{% set value = sshd_defaults[key] %}
{% else %}
{% set value = undefined %}
{% endif %}
{% if value is defined %}
{{ render_option(key,value) -}}
{% endif %}
{% endmacro %}
{% macro match_block(match_list) %}
{% if match_list["Condition"] is defined %}

View file

@ -16,18 +16,15 @@
{% endif %}
{% endmacro %}
{% macro body_option(key,override) %}
{% set value = undefined %}
{% if override is defined %}
{% set value = override %}
{% elif sshd[key] is defined %}
{% set value = sshd[key] %}
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
{% set value = sshd_defaults[key] %}
{% else %}
{% set value = undefined %}
{% endif %}
{% if value is defined %}
{{ render_option(key,value) -}}
{% endif %}
{% endmacro %}
{% macro match_block(match_list) %}
{% if match_list["Condition"] is defined %}