diff --git a/states/nftables/blacklist.nft.j2 b/states/nftables/blacklist.nft.j2 index deed150..71bc240 100644 --- a/states/nftables/blacklist.nft.j2 +++ b/states/nftables/blacklist.nft.j2 @@ -1,8 +1,8 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} -{% set blackips = salt["bl.get_ips"]() %} +{% set blackips = salt["bl.get_ips"]() -%} -{% if blackips|length > 0 %} +{%- if blackips|length > 0 -%} define blacklist = { {{ blackips|join(", ") }} } -{% else %} +{%- else -%} define blacklist = { 127.255.255.255 } -{% endif %} \ No newline at end of file +{%- endif -%} \ No newline at end of file