Merge pull request #528 from wazuh/kravietz-patch-1
Fix invalid Jinja2 syntax
This commit is contained in:
commit
c28ee788ab
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user