From ef35e6fe068c34bbcefc9687400237de3ccfd770 Mon Sep 17 00:00:00 2001 From: Elim Tsiagbey Date: Thu, 9 Jan 2025 10:11:11 -0500 Subject: [PATCH] fix: remove filter validation when no filters are provided the check currently prevents Boundary from unsetting filter --- plugin/service/host/plugin.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugin/service/host/plugin.go b/plugin/service/host/plugin.go index eaf3b85..bcbe082 100644 --- a/plugin/service/host/plugin.go +++ b/plugin/service/host/plugin.go @@ -617,11 +617,6 @@ func validateSet(s *hostsets.HostSet) error { } badFields := make(map[string]string) - _, filterSet := attrMap[ConstListInstancesFilter] - - if filterSet && len(attrs.Filters) == 0 { - badFields[fmt.Sprintf("attributes.%s", ConstListInstancesFilter)] = "must not be empty" - } for f := range attrMap { if _, ok := allowedSetFields[f]; !ok {