Files
securityonion/salt/bpf/macros.jinja
2023-11-08 11:23:19 -05:00

11 lines
239 B
Django/Jinja

{% macro remove_comments(bpfmerged, app) %}
{# remove comments from the bpf #}
{% for bpf in bpfmerged[app] %}
{% if bpf.strip().startswith('#') %}
{% do bpfmerged[app].pop(loop.index0) %}
{% endif %}
{% endfor %}
{% endmacro %}