fix: remove filter validation when no filters are provided

the check currently prevents Boundary from unsetting filter
This commit is contained in:
Elim Tsiagbey committed 2025-01-09 10:11:11 -05:00
1 parent 877d285eef
commit ef35e6fe06
1 file changed
-5
-5
View File
@@ -617,11 +617,6 @@ func validateSet(s *hostsets.HostSet) error {
} }
badFields := make(map[string]string) 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 { for f := range attrMap {
if _, ok := allowedSetFields[f]; !ok { if _, ok := allowedSetFields[f]; !ok {