Fix invalid Jinja2 syntax

This commit is contained in:
Paweł Krawczyk 2020-12-17 20:58:59 +00:00 committed by GitHub
parent ce85f1b503
commit a395841104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,8 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if localfile.format == 'json' and localfile.labels is defined %} {% if localfile.format == 'json' and localfile.labels is defined %}
{% for key, value in localfile.labels.items() %} {% for item in localfile.labels %}
<label key="{{ key }}">{{ value }}</label> <label key="{{ item.key }}">{{ item.value }}</label>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if localfile.target is defined %} {% if localfile.target is defined %}
@ -93,7 +93,7 @@
<!-- Frequency that rootcheck is executed - every 12 hours --> <!-- Frequency that rootcheck is executed - every 12 hours -->
<frequency>{{ agent_config.rootcheck.frequency }}</frequency> <frequency>{{ agent_config.rootcheck.frequency }}</frequency>
{% if agent_config.rootcheck.cis_distribution_filename is not none %} {% if agent_config.rootcheck.cis_distribution_filename is defined %}
<system_audit>/var/ossec/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }}</system_audit> <system_audit>/var/ossec/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }}</system_audit>
{% endif %} {% endif %}
<skip_nfs>yes</skip_nfs> <skip_nfs>yes</skip_nfs>