mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-14 14:18:40 +02:00
fix consecutive comments
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
{% macro remove_comments(bpfmerged, app) %}
|
{% macro remove_comments(bpfmerged, app) %}
|
||||||
|
|
||||||
{# remove comments from the bpf #}
|
{# remove comments from the bpf #}
|
||||||
|
{% set app_list = [] %}
|
||||||
{% for bpf in bpfmerged[app] %}
|
{% for bpf in bpfmerged[app] %}
|
||||||
{% if bpf.strip().startswith('#') %}
|
{% if not bpf.strip().startswith('#') %}
|
||||||
{% do bpfmerged[app].pop(loop.index0) %}
|
{% do app_list.append(bpf) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% do bpfmerged.update({app: app_list}) %}
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user