Fixed es_mail_config again

first check is es_mail_config is defined
This commit is contained in:
Jeffrey E 2018-05-23 06:15:50 +02:00 committed by GitHub
parent c79fd2ef09
commit cf4da019d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ xpack.graph.enabled: false
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if es_mail_config['account'] is defined %} {% if es_mail_config is defined %}
xpack.notification.email: xpack.notification.email:
account: account:
{{ es_mail_config['account'] }}: {{ es_mail_config['account'] }}:
@ -72,5 +72,4 @@ xpack.notification.email:
user: {{ es_mail_config['user'] }} user: {{ es_mail_config['user'] }}
password: {{ es_mail_config['pass'] }} password: {{ es_mail_config['pass'] }}
{% endif %} {% endif %}
{% endif %} {% endif %}