From fcd3b245e789a6a1be0205af1d6903b088214c9e Mon Sep 17 00:00:00 2001 From: Mesar Hameed Date: Sat, 9 Jan 2021 10:25:53 +0000 Subject: [PATCH] __ipset: explorer/content, a better way to find the start of the set membership Don't count lines, as that seems inconsistant, instead find the start of the membership list by looking for "Members:" --- cdist/conf/type/__ipset/explorer/content | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__ipset/explorer/content b/cdist/conf/type/__ipset/explorer/content index 7c9f131e..54731da6 100755 --- a/cdist/conf/type/__ipset/explorer/content +++ b/cdist/conf/type/__ipset/explorer/content @@ -20,7 +20,7 @@ name="$__object_id" if ipset -t list | grep -qP "Name: $name"; then - ipset list "$name" | tail -n +9 + ipset list "$name" | sed '0,/^Members:/d' else echo "x_missing_x" fi