Conditionally set value = undefined to avoid trigger lvalue issue on CentOS 6

This commit is contained in:
Matt Willsher 2016-01-24 12:37:58 +00:00
parent 3c6c605886
commit 03ce63e664
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,8 @@
{% set value = sshd[key] %} {% set value = sshd[key] %}
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %} {% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
{% set value = sshd_defaults[key] %} {% set value = sshd_defaults[key] %}
{% else %}
{% set value = undefined %}
{% endif %} {% endif %}
{% if value is defined %} {% if value is defined %}
{{ render_option(key,value) -}} {{ render_option(key,value) -}}

View file

@ -22,6 +22,8 @@
{% set value = sshd[key] %} {% set value = sshd[key] %}
{% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %} {% elif sshd_defaults[key] is defined and sshd_skip_defaults != true %}
{% set value = sshd_defaults[key] %} {% set value = sshd_defaults[key] %}
{% else %}
{% set value = undefined %}
{% endif %} {% endif %}
{% if value is defined %} {% if value is defined %}
{{ render_option(key,value) -}} {{ render_option(key,value) -}}