mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 04:50:18 +01:00
Check that value is defined before calling render macro
This commit is contained in:
parent
e48ffc4e28
commit
90992da436
2 changed files with 4 additions and 0 deletions
|
@ -23,7 +23,9 @@
|
|||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% set value = sshd_defaults[key] %}
|
||||
{% endif %}
|
||||
{% if value is defined %}
|
||||
{{ render_option(key,value) -}}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro match_block(match_list) %}
|
||||
{% if match_list["Condition"] is defined %}
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
|
||||
{% set value = sshd_defaults[key] %}
|
||||
{% endif %}
|
||||
{% if value is defined %}
|
||||
{{ render_option(key,value) -}}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
{% macro match_block(match_list) %}
|
||||
{% if match_list["Condition"] is defined %}
|
||||
|
|
Loading…
Reference in a new issue