From d6292fac8054b6096909e1af4c8301e760418f7a Mon Sep 17 00:00:00 2001 From: Manuel Weber <112621871+mm-weber@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:23:07 +0200 Subject: [PATCH] :broom: Set correct filter for `cnspec bundle init` policy (#845) --------- Signed-off-by: Manuel Weber --- internal/bundle/fmt_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/bundle/fmt_test.go b/internal/bundle/fmt_test.go index 80c28e02..e91cc53a 100644 --- a/internal/bundle/fmt_test.go +++ b/internal/bundle/fmt_test.go @@ -23,7 +23,7 @@ policies: name: SSH Server Policy specs: - asset_filter: - query: platform.family.contains(_ == 'unix') + query: asset.family.contains('unix') scoring_queries: query1: version: "1.0.0" @@ -58,7 +58,7 @@ queries: - name: Jane Doe email: jane@example.com groups: - - filters: platform.family.contains(_ == 'unix') + - filters: asset.family.contains('unix') checks: - uid: query1 scoring_system: 2