fix: remove filter validation when no filters are provided
the check currently prevents Boundary from unsetting filter
This commit is contained in:
1 parent
877d285eef
commit
ef35e6fe06
1 file changed
-5
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user