From abe739eb94db3076a4a16f1b5c7964422f81ebb0 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 2 Jan 2022 18:04:29 +0100 Subject: [PATCH] updated nftables state --- states/nftables/blacklist.nft.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states/nftables/blacklist.nft.j2 b/states/nftables/blacklist.nft.j2 index 20b0690..2eaf40f 100644 --- a/states/nftables/blacklist.nft.j2 +++ b/states/nftables/blacklist.nft.j2 @@ -1,7 +1,7 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} {% set blackips = salt["bl.get_ips"]() %} -{% if len(blackips) > 0 %} +{% if blackips|length > 0 %} define blacklist = { {{ blackips.join(",") }} } {% else %} define blacklist = { 127.255.255.255 }