Fix wazuh_manager_config.email_notification
There's no need for a complicated if..then condition here since the value is expected to be yes/no only
This commit is contained in:
parent
f96ab0a317
commit
7381dc8b2b
@ -11,11 +11,7 @@
|
||||
<alerts_log>{{ wazuh_manager_config.alerts_log }}</alerts_log>
|
||||
<logall>{{ wazuh_manager_config.logall }}</logall>
|
||||
<logall_json>{{ wazuh_manager_config.logall_json }}</logall_json>
|
||||
{% if wazuh_manager_config.email_notification | lower == "yes" %}
|
||||
<email_notification>yes</email_notification>
|
||||
{% else %}
|
||||
<email_notification>no</email_notification>
|
||||
{% endif %}
|
||||
<email_notification>{{ wazuh_manager_config.email_notification }}</email_notification>
|
||||
{% for to in wazuh_manager_config.mail_to %}
|
||||
<email_to>{{ to }}</email_to>
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user