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 %}
{% if es_mail_config['account'] is defined %}
{% if es_mail_config is defined %}
xpack.notification.email:
account:
{{ es_mail_config['account'] }}:
@ -71,6 +71,5 @@ xpack.notification.email:
{% if es_mail_config['require_auth'] == true %}
user: {{ es_mail_config['user'] }}
password: {{ es_mail_config['pass'] }}
{% endif %}
{% endif %}
{% endif %}