mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-21 14:35:27 +01:00
13 lines
299 B
Django/Jinja
13 lines
299 B
Django/Jinja
{% macro remove_comments(bpfmerged, app) %}
|
|
|
|
{# remove comments from the bpf #}
|
|
{% set app_list = [] %}
|
|
{% for bpf in bpfmerged[app] %}
|
|
{% if not bpf.strip().startswith('#') %}
|
|
{% do app_list.append(bpf) %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% do bpfmerged.update({app: app_list}) %}
|
|
|
|
{% endmacro %}
|